Note that in a vanilla installation the directory ~/.config/autostart may not yet exist. The content of this file may be as follows: Similar to what the GUI solution above does we can manually add a. Select an application to add to autostart. If we do not know the command we can choose to "Browse." our file system for installed applications. We may also add an optional "Comment" here. If we know the command to run the application just enter it here in the "Command" line. Tick or untick the applications there or choose "Add" to add a new application: This will open a window where we can see all installed applications that will run on startup. Or we can run the startup preferences from a terminal with gnome-session-properties We can search the Dash for "startup applications" We can add applications to the "Startup Applications" by opening the menu entry on the top panel right side: startxfce4 for XFCE, or when running Xubuntu.gnome-session -session=classic-gnome for classic GNOME desktop.gnome-session -session=ubuntu for standard desktop (with Unity in 11.04).To start another installed desktop manager replace the last line from the ~/.xsession script with the following: Next time we login we will have the choice to start a "Marco's Crowded Session" with all applications from the script running in addition to applications from the gnome-session (or any other desktop manager you chose to start here). session=classic-gnome as option to run Classic GNOME Desktop in 11.04. Options for gnome-session may be omitted to load the default session. desktop file, that is ~/.xsession in the example given, needs to be made executable and may have a content similar to this: #! /bin/bash The script needs to be named as defined in the. xsession in the HOME directory at login where we can put in any appplications we need to start after login. Use any fancy name for your session and replace username by your name of course. This has the advantage to use different sessions for different task, each with different applications loaded.įor this purpose we create a sktop file as root in /usr/share/xsessions with the following content (for GNOME/GDM): User defined sessions for applications to start after loginĪn alternative way to automatically start applications after login is to define a user defined session.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |