This is a tip to automatically start any program of your choice while logging into your GNOME 3 desktop.
Create an ordinary file in your ~/.config/autostart
directory. If the ~/.config/autostart
directory is not present, you will have to create it.
Name the file appname.desktop; where appname is the name of the program you want to start during GNOME 3 startup.
For example, I wanted Artha (a free offline dictionary) to start during GNOME 3 startup in Fedora and I named the file artha.desktop
and saved it in the~/.config/autostart
directory.
Now enter the following data in the file.
[Desktop Entry]
Type=Application
Exec=/usr/bin/artha Hidden=false
X-GNOME-Autostart-enabled=true
Name[en_US]=artha Name=artha Comment[en_US]=offline dictionary Comment=offline English dictionary
You should change the sections shown in blue to reflect your application.
Lastly save and close the file. That is it. Next time you start GNOME 3, the application will automatically start running.
出自http://linuxandfriends.com/2011/06/01/how-to-add-startup-programs-in-gnome-3/