Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Where and how are the Ubuntu equivalent of your personal Windows configuration stored? Something akin to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run as well as the Start Up menu.

I have spotted the System --> Preferences --> Startup Applications menu entry which seems to do some of it, but it doesn't appear to cover most of the things.

I am more concerned with those which a pertinent to a graphics login, either directly at the computer or remotely through NX or x2go for instance, as well as those that apply to every user such as this xrandr and those the user might configure personally

For instance I have got an xrandr script to set my screen resolution and I also need to configure Firefox to allow me to use multiple profiles. Currently I do all from the gnome terminal after logging onto the desktop.

Is there some guide where I can configure all these settings at logon time? The main thing is the should only apply to logging to Ubuntu or Gnome destkop, not logging on at the console.

share|improve this question
2  
If you create a .sh script with the stuff you need and tell Startup Applications to run it wouldn't solve your problem? –  Jesse Apr 10 '13 at 2:49

3 Answers 3

up vote 4 down vote accepted
+50

Programs that start at login in a graphical environment are called from .desktop launcher files in ~/.config/autostart and in /etc/xdg/autostart/. Here are the specifications for the autostart launchers. It's basically just a special case of the normal .desktop specification

share|improve this answer

Usually, individual applications store their data/configurations in ~/.[program], however, login programs store their initializations elsewhere.

For instance, to have something start upon terminal login, you could put it in ~/.bashrc.

However, you want to have it start upon desktop login. For that, you should write a script that executes all the things you do by hand.

After that, set the script to executable (chmod +x [script]).

Last of all, go to System --> Preferences --> Startup Applications, and add your script to the list.

That should be it!


Comment if that doesn't solve your problem.

share|improve this answer

It's not an answer per se but just to add some more to what others said - depending on how well you know your system you might want to configure this with GUI. You will probably have to display all apps in gnome-session-properties first, i.e. ignore the Hidden attribute of .desktop files. To do so run sudo gedit /etc/xdg/autostart/print-applet.desktop and change NoDisplay=true to NoDisplay=false.

Other than that, each autostart .desktop file can contain OnlyShowIn entry, e.g. OnlyShowIn=GNOME; will only run an app in GNOME and not in Unity, LXDE or other environments.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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