Thursday, January 12, 2012

Gnome 3 AutoStart Programs on Login


Gnome 3 AutoStart Programs on Login

Method 1: GUI:
Use "Desktop Search" to find "Startup Application Preferences" (gnome-session-preferences). Note that it doesn't show up with the Meta key search.

Click Add
Give it a name, and a command

Most programs can be started simply with their common name, eg "chromium", "evolution", "firefox", as long as it's in the path.

Google Chrome is "google-chrome"

This process creates adds desktop files in home/[user]/.config/autostart

Method 2: Directory

You can create your own "desktop" files directly in home/[user]/.config/autostart by either copying an existing one, and editing the properties (right-click)

Give it a name, and a command

Click on the image to find a new image (usually in /usr/share/icons/hicolor/scalable/apps)


--Or--

Create your own

.desktop config:

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Docky
X-SuSE-translate=true
Type=Application
Exec=nautilus
Terminal=false
Icon=/usr/share/icons/hicolor/scalable/apps/nautilus.svg
Comment=chromium web browser.
NoDisplay=false
Categories=Utility;X-SuSE-DesktopUtility;
Hidden=false
Name[en_US]=Nautilus.desktop
Comment[en_US.utf8]=nautilus

1 comment:

Bill said...

Now there is an extension to put it in your menu - https://extensions.gnome.org/extension/620/startup-applications/