特殊:Badtitle/NS100:AddingProgramToSessionStartup:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第2行: | 第2行: | ||
{{Languages|UbuntuHelp:AddingProgramToSessionStartup}} | {{Languages|UbuntuHelp:AddingProgramToSessionStartup}} | ||
There are two ways to get Ubuntu to load applications automatically each time you start up: | There are two ways to get Ubuntu to load applications automatically each time you start up: | ||
<ol><li>Save your session when you log off, and the applications will be restarted when you sign back on. | |||
</li><li>Configure Ubuntu to run an application every time you sign on.</li></ol> | |||
=== Session Preferences Dialog === | === Session Preferences Dialog === | ||
Each time you log on to Ubuntu you are creating a "session." To customize your session, you have to modify the session settings. To do this go to (dependent on Ubuntu version) either of: | Each time you log on to Ubuntu you are creating a "session." To customize your session, you have to modify the session settings. To do this go to (dependent on Ubuntu version) either of: | ||
第11行: | 第12行: | ||
In Ubuntu 8.04 there are three tabs: "Session Options", "Current Sessions" and "Startup Programs". In Ubuntu 9.04 there are just two tabs: "Startup Programs"; "Options". | In Ubuntu 8.04 there are three tabs: "Session Options", "Current Sessions" and "Startup Programs". In Ubuntu 9.04 there are just two tabs: "Startup Programs"; "Options". | ||
{|border="1" cellspacing="0" | {|border="1" cellspacing="0" | ||
| | |https://help.ubuntu.com/community/AddingProgramToSessionStartup?action=AttachFile&do=get&target=sessions.png | ||
|} | |} | ||
=== Startup Programs === | === Startup Programs === | ||
第18行: | 第19行: | ||
To add an applications click the "Add" button and type in the command you would use to run the application. If the program is called "evolution" the command would be evolution, but there are options, as well, that can be added to the command. '''(see below)'''. | To add an applications click the "Add" button and type in the command you would use to run the application. If the program is called "evolution" the command would be evolution, but there are options, as well, that can be added to the command. '''(see below)'''. | ||
{|border="1" cellspacing="0" | {|border="1" cellspacing="0" | ||
| | |https://help.ubuntu.com/community/AddingProgramToSessionStartup?action=AttachFile&do=get&target=ADD.png | ||
|} | |} | ||
<<BR>> | <<BR>> | ||
第25行: | 第26行: | ||
Find the icon for Evolution in the panel bar at the top of the screen. Right click on it, and select "Properties." This will bring up the "Launcher Properties" dialog box. Notice the command in the "Command field." It may be necessary to place a cursor in the field by clicking on the line. Then use the arrow key to move right, to see the entire command. | Find the icon for Evolution in the panel bar at the top of the screen. Right click on it, and select "Properties." This will bring up the "Launcher Properties" dialog box. Notice the command in the "Command field." It may be necessary to place a cursor in the field by clicking on the line. Then use the arrow key to move right, to see the entire command. | ||
{|border="1" cellspacing="0" | {|border="1" cellspacing="0" | ||
| | |https://help.ubuntu.com/community/AddingProgramToSessionStartup?action=AttachFile&do=get&target=properties.png | ||
|} | |} | ||
In this case, the command is: | In this case, the command is: | ||
第54行: | 第55行: | ||
=== Session Options === | === Session Options === | ||
{|border="1" cellspacing="0" | {|border="1" cellspacing="0" | ||
| | |https://help.ubuntu.com/community/AddingProgramToSessionStartup?action=AttachFile&do=get&target=options.png | ||
|} | |} | ||
This tab allows you to tell the system to remember what applications are running at logout, and start those applications at the beginning of your next login. This is accomplished by checking the box '''Automatically remember running applications when logging out.''' Similarly, clicking the '''floppy disk''' icon, tells the system to remember the applications that are currently running (if pidgin where running, for example), and to start those applications at the beginning of your next section. | This tab allows you to tell the system to remember what applications are running at logout, and start those applications at the beginning of your next login. This is accomplished by checking the box '''Automatically remember running applications when logging out.''' Similarly, clicking the '''floppy disk''' icon, tells the system to remember the applications that are currently running (if pidgin where running, for example), and to start those applications at the beginning of your next section. | ||
第67行: | 第68行: | ||
</nowiki></pre> | </nowiki></pre> | ||
The first part "evolution" is the command that is running. | The first part "evolution" is the command that is running. | ||
The second part "--component=mail" is called an option. You can modify the way evolution starts up by changing this option. The real trick is to find out what the command line supports. You might try | The second part "--component=mail" is called an option. You can modify the way evolution starts up by changing this option. The real trick is to find out what the command line supports. You might try [http://www.google.com Google] to search for these options. You can test these out on a command line: | ||
* '''Applications > Accessories > Terminal''' | * '''Applications > Accessories > Terminal''' | ||
And try out variations first. Once you have it right then you can change the settings in startup. | And try out variations first. Once you have it right then you can change the settings in startup. | ||
Good luck... | Good luck... | ||
=== Moving applications to a workspace on startup and other advanced options === | === Moving applications to a workspace on startup and other advanced options === | ||
Using the way described above, all the applications start in one workspace, maximized and so on. If you wished for example to start an application in workspace 2 minimized, you would have to do it manually - unless you install devilspie - detailed howto can be found on the forums: | Using the way described above, all the applications start in one workspace, maximized and so on. If you wished for example to start an application in workspace 2 minimized, you would have to do it manually - unless you install devilspie - detailed howto can be found on the forums: [http://ubuntuforums.org/showthread.php?t=75749t] | ||
=== Finding the right commands alternative === | === Finding the right commands alternative === | ||
After following this tutorial i found that i didn't have a sessions tab for some reason and could not find the commands to open a couple programs. My alternative solution was to find the program under the applications drop down and right click and select "add this launcher to the desktop". then i right clicked the new desktop shortcut and copied the command field and manually added it. The browse button just wasn't doin it for me. i didn't know where to look. Being new to ubuntu and linux i never would have guessed that the command i needed to open cairo-dock was "cairo-dock -o". Afterwards i trashed the shortcut on the desktop. Hope that helps someone. | After following this tutorial i found that i didn't have a sessions tab for some reason and could not find the commands to open a couple programs. My alternative solution was to find the program under the applications drop down and right click and select "add this launcher to the desktop". then i right clicked the new desktop shortcut and copied the command field and manually added it. The browse button just wasn't doin it for me. i didn't know where to look. Being new to ubuntu and linux i never would have guessed that the command i needed to open cairo-dock was "cairo-dock -o". Afterwards i trashed the shortcut on the desktop. Hope that helps someone. | ||
=== Comments === | === Comments === | ||
This is a very handy way to start | This is a very handy way to start [http://www.gdesklets.de/ gdesklet], Firestarter (firewall) or other applications automatically. Some applications will actually add themselves to your Startup Programs tab after you configure them for the first time. | ||
---- | ---- | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2010年5月19日 (三) 17:16的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/AddingProgramToSessionStartup }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/af | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|Afrikaans| [[::AddingProgramToSessionStartup/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/ar | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|العربية| [[::AddingProgramToSessionStartup/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/az | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|azərbaycanca| [[::AddingProgramToSessionStartup/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/bcc | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|جهلسری بلوچی| [[::AddingProgramToSessionStartup/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/bg | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|български| [[::AddingProgramToSessionStartup/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/br | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|brezhoneg| [[::AddingProgramToSessionStartup/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/ca | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|català| [[::AddingProgramToSessionStartup/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/cs | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|čeština| [[::AddingProgramToSessionStartup/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/de | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|Deutsch| [[::AddingProgramToSessionStartup/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/el | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|Ελληνικά| [[::AddingProgramToSessionStartup/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/es | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|español| [[::AddingProgramToSessionStartup/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/fa | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|فارسی| [[::AddingProgramToSessionStartup/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/fi | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|suomi| [[::AddingProgramToSessionStartup/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/fr | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|français| [[::AddingProgramToSessionStartup/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/gu | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|ગુજરાતી| [[::AddingProgramToSessionStartup/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/he | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|עברית| [[::AddingProgramToSessionStartup/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/hu | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|magyar| [[::AddingProgramToSessionStartup/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/id | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|Bahasa Indonesia| [[::AddingProgramToSessionStartup/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/it | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|italiano| [[::AddingProgramToSessionStartup/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/ja | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|日本語| [[::AddingProgramToSessionStartup/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/ko | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|한국어| [[::AddingProgramToSessionStartup/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/ksh | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|Ripoarisch| [[::AddingProgramToSessionStartup/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/mr | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|मराठी| [[::AddingProgramToSessionStartup/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/ms | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|Bahasa Melayu| [[::AddingProgramToSessionStartup/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/nl | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|Nederlands| [[::AddingProgramToSessionStartup/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/no | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|norsk| [[::AddingProgramToSessionStartup/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/oc | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|occitan| [[::AddingProgramToSessionStartup/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/pl | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|polski| [[::AddingProgramToSessionStartup/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/pt | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|português| [[::AddingProgramToSessionStartup/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/ro | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|română| [[::AddingProgramToSessionStartup/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/ru | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|русский| [[::AddingProgramToSessionStartup/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/si | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|සිංහල| [[::AddingProgramToSessionStartup/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/sq | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|shqip| [[::AddingProgramToSessionStartup/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/sr | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|српски / srpski| [[::AddingProgramToSessionStartup/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/sv | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|svenska| [[::AddingProgramToSessionStartup/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/th | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|ไทย| [[::AddingProgramToSessionStartup/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/tr | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|Türkçe| [[::AddingProgramToSessionStartup/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/vi | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|Tiếng Việt| [[::AddingProgramToSessionStartup/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/yue | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|粵語| [[::AddingProgramToSessionStartup/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/zh | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|中文| [[::AddingProgramToSessionStartup/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/zh-hans | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|中文(简体)| [[::AddingProgramToSessionStartup/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AddingProgramToSessionStartup | UbuntuHelp:AddingProgramToSessionStartup | {{#if: | :}}AddingProgramToSessionStartup}}/zh-hant | • {{#if: UbuntuHelp:AddingProgramToSessionStartup|中文(繁體)| [[::AddingProgramToSessionStartup/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:AddingProgramToSessionStartup|:AddingProgramToSessionStartup|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :AddingProgramToSessionStartup/zh | | {{#ifexist: AddingProgramToSessionStartup/zh | | {{#ifeq: {{#titleparts:AddingProgramToSessionStartup|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:AddingProgramToSessionStartup|1|-1|}} | zh | | }}
There are two ways to get Ubuntu to load applications automatically each time you start up:
- Save your session when you log off, and the applications will be restarted when you sign back on.
- Configure Ubuntu to run an application every time you sign on.
Session Preferences Dialog
Each time you log on to Ubuntu you are creating a "session." To customize your session, you have to modify the session settings. To do this go to (dependent on Ubuntu version) either of:
- System > Preferences > Sessions
- System > Preferences > Startup Applications
Ubuntu opens a dialog box that allows you to configure your session settings. In Ubuntu 8.04 there are three tabs: "Session Options", "Current Sessions" and "Startup Programs". In Ubuntu 9.04 there are just two tabs: "Startup Programs"; "Options".
Startup Programs
This tab allows you to specify any applications that you want to run each time you begin a session. An example of such an application would be the network-manager applet (nm-applet), which allows easier access to wireless networks.
ADD
To add an applications click the "Add" button and type in the command you would use to run the application. If the program is called "evolution" the command would be evolution, but there are options, as well, that can be added to the command. (see below).
<
>
How to find the appropriate startup command
As an example consider the Evolution mail client. Imagine you want to load Evolution every time you start up, instead of clicking on the "Evolution Mail" icon in the panel bar to launch the program. You can add the appropriate command to the Startup Programs tab. Find the icon for Evolution in the panel bar at the top of the screen. Right click on it, and select "Properties." This will bring up the "Launcher Properties" dialog box. Notice the command in the "Command field." It may be necessary to place a cursor in the field by clicking on the line. Then use the arrow key to move right, to see the entire command.
In this case, the command is: evolution --component=mail Now we want to add this line as the command in the Add Startup Program dialog box. The Name Field can be any name you choose. To summarize:
- Go to System > Preferences > Sessions (or Startup Applications)
- Select the "Startup Programs" tab
- Click add
- Enter a name to call the application (any name will do)
- In the "Startup command box," enter the command
- Click OK (You should see your new command)
- Click Close
Test by restarting or logging out and back in.
First, locate the application in the menu structure -- do not select it to run, right mouse click to get the context menu and select "Add this launcher to panel." This will place an icon for the application on the panel at the top of the desktop. Now you can follow the steps above to find and copy the appropriate command. If you wish to remove the icon from your panel after you have done this, simply right click and select "Remove from panel."
To stop an application from running at startup
If you no longer want the application to start up when you logon:
- Go to System > Preferences > Sessions
- Select the "Startup Programs" tab
- Select the application you want to remove
- Click Remove
- Click Close
OR
- Un-check the box next to the name of the application
Session Options
This tab allows you to tell the system to remember what applications are running at logout, and start those applications at the beginning of your next login. This is accomplished by checking the box Automatically remember running applications when logging out. Similarly, clicking the floppy disk icon, tells the system to remember the applications that are currently running (if pidgin where running, for example), and to start those applications at the beginning of your next section.
Current Session
This tab shows the processes that are currently running.
Options
A simplified version of "Session Options" for 9.04; includes the Automatically remember running applications when logging out tick-box only.
Modifying program run options
Now you may wish to modify the way an application works at startup. This is possible through command line options, there are parts to the command line:
evolution --component=mail
The first part "evolution" is the command that is running. The second part "--component=mail" is called an option. You can modify the way evolution starts up by changing this option. The real trick is to find out what the command line supports. You might try Google to search for these options. You can test these out on a command line:
- Applications > Accessories > Terminal
And try out variations first. Once you have it right then you can change the settings in startup. Good luck...
Moving applications to a workspace on startup and other advanced options
Using the way described above, all the applications start in one workspace, maximized and so on. If you wished for example to start an application in workspace 2 minimized, you would have to do it manually - unless you install devilspie - detailed howto can be found on the forums: [1]
Finding the right commands alternative
After following this tutorial i found that i didn't have a sessions tab for some reason and could not find the commands to open a couple programs. My alternative solution was to find the program under the applications drop down and right click and select "add this launcher to the desktop". then i right clicked the new desktop shortcut and copied the command field and manually added it. The browse button just wasn't doin it for me. i didn't know where to look. Being new to ubuntu and linux i never would have guessed that the command i needed to open cairo-dock was "cairo-dock -o". Afterwards i trashed the shortcut on the desktop. Hope that helps someone.
Comments
This is a very handy way to start gdesklet, Firestarter (firewall) or other applications automatically. Some applications will actually add themselves to your Startup Programs tab after you configure them for the first time.