How can I make an application automatically start when I have logged in?
|
|
14.04 and later
Using Main Menu (alacarte
|
|
|||
|
The Start-up Applications Preferences dialogue can be brought up from ALT+F2
gnome-session-properties if you can't find it in menus (e.g. in Gnome Shell)
– mtdevans
Jan 28 '13 at 22:59
|
||
|
|||
|
|||
|
Note that if you take the non-GUI approach, the file must end with .desktop or it will be ignored.
– leo-the-manic
Sep 30 '16 at 12:38
|
|
Launch Startup applications from Dash
Click on Startup Applications
And then click on add
Type the name of the program, browse to the command, and then click add. Addition: Here is a sample that I use to autostart Guake - the Gnome version of Yakuake: Put this in the 'command' box.
This starts guake automatically, but waits 2 mins before doing so. You can change the 120 to whatever you wish. Edit: For 14.04 and 16.04: Type Startup in Dash, and run Startup Application form there
And then just follow the rest of the steps. (please note that, if you are using ubuntu in another language, "startup" might not find the correct program. Try another search that is in your language) |
||||
|
You can use the feature to Remember Currently Running Applications in the System/Preferences/Startup Applications preferences window. Which (when enabled) will "remember" all the programs that you are using and will re-open them after a reboot or when starting the system for the first time in a day. This is great when you don't have enough time to make notes of what were you doing the last time and you wish an application to open if it was running the last time. If you wish to remove an application from this feature simply close it and go to this function and press the "Remember Currently Running Application" in order to refresh the list of the programs that will be opened the next time.
|
|||||||||
|
|
Ubuntu 13.10 with UNITY Instructions To do this with a command that requires In my case, I wanted to disable the PSMOUSE driver using the command On my install, the In order to toggle visibility of hidden startup applications, you can use the following commands. To show them :
To hide them :
Configure your command as per above posts in the Startup Applications Perferences window.
Then you have to edit the /etc/sudoers file using
You must enter this line below the line which starts with %admin. I added my line to the end of the file.
It is IMPORTANT to use Note: |
||||
|
|
|
Take a look at $XDG_CONFIG_DIRS/autostart directory:
which says there are 3 directories in this example. I wanted to prune the nautilus entry
otherwise if you can add it, create a Desktop entry file:
|
||||
|
|
|
Also to put a BATCH FILE into start up applications to run after user login.... type at the command line in start up applications in the field Command:
Remember than the file batch permissions to set the flag Allow executing file as a program to ON. |
||||
|
|
|
For Ubuntu 12.04,
|
|||||
|
|
For a simple, portable way to do this, you can use Cron. Run |
|||
|
|
|
You might want to start it from a CLI via:
(just in case you're not running GNOME ;)) |
|||||
|
|
Alt+F2, then Click Run, wait a sec, and then follow the directions. |
|||||||||
|
|
type as startup applications in your unity dash and it will list you that application and click it to open . after opening that you can add your application there . |
|||
|
|
|
Both Unity and Xfce4 have GUI programs that allow you to control startup applications. For Unity:
For Xfce4 Startup tool is available in Settings > Session and Startup
If the GUI is not what you want, and you want is more advance control, then you can put Check this question to get more help on creating Also note if you want a startup application to start only in XFCE, but not in Unity, you have to put the line |
|||||||||
|
|
For 11.04 and newer see here: How do I start applications automatically on login? For older versions: If the program you wish to run on startup is in the Applications menu, you can drag-and-drop it into the Startup Applications window to add it to the list.
|
||||
|
|
|
You can use GNOME Startup Application. Click the Add button and then add the full command to open the application you want. If you don't know the path of the command you can do
|
|||
|
|
protected by heemayl Apr 11 '16 at 14:07
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?













Image courtesy of Xubuntu Geek 
