When you go to "Startup Applications", you see a list of commands that are executed at startup and you can add your own.

I would like to know where this list is stored. Is it in gconf somewhere?

There are two reasons I want to know this:

  • add commands programmatically
  • disable some commands (in Oneiric, the default ones are not shown anymore)
link|improve this question
feedback

3 Answers

up vote 8 down vote accepted

In Gnome (Ubuntu's default Desktop Environment). the Startup Applications are .desktop files stored in

~/.config/autostart

Also, as already mentioned, both Gnome and Xfce also stores system-wide "default" startup applications in

/etc/xdg/autostart

And the enable/disable feature is provided by the attribute

X-GNOME-Autostart-enabled=true (or false)

in each .desktop file

If a user toggles enable/disable status of a given application (without deleting it) that was in the system folder, it is copied to the user folder and then the attribute X-GNOME-Autostart-enabled is changed. If a user deletes a given application from the list, the .desktop is copied to user folder with the Hidden=true attribute (or the file is simply deleted if it was present just in the user folder)

Last but not least, files in both user and system folder are not marked as executable. Permission is 644 (rw-r--r--)

link|improve this answer
1  
Thanks, this was helpful. The same paths also work for Kubuntu. – ctd Sep 30 '11 at 0:50
feedback

In KDE it's in

/home/boris/.kde/Autostart

and I have a script there which starts Krusader. Here's the text of the script.

 #!/bin/bash
 krusader &

Don't forget to make the scripts You'll put in Autostart - to be executable.

link|improve this answer
feedback

I use xfce and what I have found is most of system related autostart commands such as

power-managers, gnome-keyring, ubuntuone, blueman etc

are stored in /etc/xdg/autostart while most of user specific autostart are located at

$USER/.config/autostart You may have a look at those 2 places.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.