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.

Is there a 'Startup applications' app for lubuntu? Or how do I add apps to startup? I attempted a tutorial to add entries to ~/.config/autostart, but it did not work. Isn't there an easy way? Any ideas please?

share|improve this question
    
possible duplicate of Openbox doesn't start xcompmgr at start up –  Uri Herrera Jul 3 '12 at 19:09
    
no, just syntax error of the .desktop files. However, openbox sometimes crashes and tells me to include ~/.config/autostart in the bug report. –  melvincv Jul 6 '12 at 13:04
add comment

2 Answers

up vote 4 down vote accepted

You can install the programm 'lxsession-edit' from the software center. It will give you an interface like the "startup applications" app

Or you can add programs by editing the
'/etc/xdg/lxsession/LXDE/autostart' file.
To do this press Alt + F2 and type gksu gedit.

Or the cleanest way (that didn't work for you) adding .desktop files to '/home/username/.config/autostart' and make sure they're marked as executables.

Here is a default syntax for a .desktop file with some of the most important entries.

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name="NAME OF THE APPLICTAION"
Comment="WHAT DOES THE APP DO?"
Exec="EXECUTABLE PATH OF APPLICATION"
Hidden=false
NoDisplay=false
Terminal=false

Example:

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Firefox
Comment=Firefox Web Browser
Exec=firefox
Hidden=false
NoDisplay=false
Terminal=false

For applications that have their binaries in /usr/bin you don't have to put the whole path, just the name of the executable.

Save as "YOUR_APPNAME".desktop in ~/.config/autostart and mark it to be executable.

(Right Click on icon -> Properties -> Permissions)

log out and back in and it should have worked.

share|improve this answer
    
Thanks, that is part of lubuntu 12.04. But I need to ADD new applications to the startup list. –  melvincv Jul 3 '12 at 9:13
    
Let's go for the cleanest way again. How do I create and format a .desktop file properly? Easy ways preferred. –  melvincv Jul 3 '12 at 9:27
    
I'm trying for per user startup. –  melvincv Jul 3 '12 at 9:27
    
alright I'll write a walkthrough for you as soon as I'm home cause my phone won't get the formatting right –  Daniel Jul 3 '12 at 10:11
    
thanks for the detailed info :) –  melvincv Jul 4 '12 at 5:01
add comment

You should be able to add the .desktop file to the directory you listed: ~/.config/autostart

Did you log out and back in?

The easiest way I have found to do this is to:

  1. Open up PCmanFM and go to /usr/share/applications.
  2. Find the application you're looking for and copy it.
  3. Open up ~/.config/autostart in PCmanFM.
  4. Paste in the application you copied.
  5. Logout

Once you log back in, it should be working. If it's not, it may be a question of the app, not the autostart process. Which app are you trying to autostart? Maybe we can help you better with more details.

share|improve this answer
    
Thanks a lot, I'll try this out. –  melvincv Jul 4 '12 at 5:02
add comment

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.