Starting CentOS 6 Desktop Applications on Login

From Techotopia
Jump to: navigation, search
PreviousTable of ContentsNext
Using the Bash Shell on CentOS 6Configuring CentOS 6 Desktop Keyboard Shortcuts


Purchase and download the full PDF, ePub & Kindle versions of this CentOS 6 eBook for only $9.99
Kindle/ePub/PDF edition contains 39 chapters and over 240 pages.

Buy eBook


By default, the CentOS 6 desktop environment starts a number of different programs each time a user logs into a desktop session. Sometimes the default list includes programs that are not needed by every user. On other occasions, additional programs are required by the user, or the user may wish for any currently running programs to be automatically restarted next time the current user logs in to the desktop. In this chapter we will look at configuring programs to auto-load when a user logs in and how to create and manage sessions.

Session Managed and Non-Session Managed Programs

Programs in the context of the CentOS GNOME desktop fall into two categories; those that are session managed and those that are not. Session managed programs are aware that they are running in a session and are able to react to notifications from the session manager. A session managed program, for example, will save all the current settings and data when informed by the session manager that the session is ending. Depending on the session configuration settings, the program will then restart with the previous settings and data the next time the session starts. Programs that are not session managed will not be able to respond to notifications that the session is ending and will lose any settings and data that have not already been manually saved by the user.

Configuring Desktop Startup Programs

The programs that get started when a user logs in are configured via the Startup Applications Preferences dialog. This dialog is accessed from the System -> Preferences -> Startup Applications menu. When first loaded, the dialog displays the Startup Applications Preferences panel which lists the programs that are to be started when a user logs into a desktop session:


CentOS 6 Configure Desktop Startup Applications


Any programs that are not required may be disabled on desktop startup simply by unchecking the selection box next to the item. Most of the programs configured to start by default are there for a reason and use few system resources, so unless you are sure you will not need the program (for example you may never plan to use Bluetooth) there is really little to be gained by disabling a program.

It is more likely, however, that you will need to add a program to be launched automatically when you login. This can easily be achieved by clicking on the Add button. In the resulting New Startup Program dialog enter a descriptive name for the program and then click on the Browse button to locate the actual program executable file on the file system. Once you have filled in the dialog press the OK button to apply the program to the list.


Saving the Current Session

Another way to specify applications to be started during future desktop sessions is to simply start the desired applications manually, open the Startup Applications Preferences dialog (System -> Preferences -> Startup Applications) and select the Options panel. Selecting the Automatically remember running applications when logging out toggle option will ensure that whatever is running each time a user logs out will be automatically reloaded when that user subsequently logs back in.

CentOS 6 Remember running applications


Purchase and download the full PDF, ePub & Kindle versions of this CentOS 6 eBook for only $9.99
Kindle/ePub/PDF edition contains 39 chapters and over 240 pages.

Buy eBook



PreviousTable of ContentsNext
Using the Bash Shell on CentOS 6Configuring CentOS 6 Desktop Keyboard Shortcuts