5

How do I put particular application on system startup on my Fedora 15.

For instance if I want to start my Firefox browser on system startup how do I achieve this?

What have I done so far is, I just created a simple shell scrip and put the command of starting a Firefox browser in that and placed that shell script in /etc/init.d/ directory.

#!/bin/bash
/usr/bin/firefox
1
  • 2
    Firefox isn't something you can start on system startup, it's something you start after you've logged in, as part of your user session startup. Nov 23, 2012 at 23:42

2 Answers 2

5

That should be configured in your desktop environment (DE) settings. For example if you're running Gnome, use gnome-session-properties as explained in this question on AskFedora.

For KDE this can be configured in Autostart, which looks like this:

enter image description here

The reason why the global init scripts won't work is that these commands are run outside the scope of the GUI/DE. Similarly, you can't run firefox from a plain tty shell without tweaks, but you can from the terminal window within your DE.

2

There are 2 ways you can do this. The first way is for if you are running gnome. From the terminal type the command

#gnome-session-properties 

and ENTER then you can add your entry there...

for example : empathy is in /usr/bin/empathy

Or you can create a script and place it /etc/rc.local/myautostart.sh

#!/bin/sh
/usr/bin/empathy

Make the script file executable

#chmod r+x /etc/rc.local/myautostart.sh

And there you have it

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .