Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Using Ubuntu's GUI I can add/remove/edit Startup apps from System->Preferences->Startup Applications menu.

Now if I only have SSH access to that machine, how can I edit/add these apps? In what file(s) is the configuration stored? Can you post an example how to add, say, VLC player?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

If you want to do this for every user, change to /etc/xdg/autostart/. If it's only for your user account, go to your home directory and to .config/autostart/. There should be lots of .desktop-files here.

Create a new file named yourcommand.desktop, e.g. for VLC by using sudo nano vlc.desktop. Then add the following information in the file:

[Desktop Entry]
Type=Application
Name=VLC
Exec=/usr/bin/env vlc

Save the file. That should do it. For any other command, change the Name and the Exec line. The Exec line should point to something you can run, obviously. In this case it's the vlc command.

(I tested this with Ubuntu 10.10, worked like a charm)

share|improve this answer
    
Excellent, thanks –  Siim K Nov 15 '10 at 11:10
add comment

If you have an X server on your local machine, you can SSH in with X forwarding enabled (ssh -X) and run gnome-session-properties.

share|improve this answer
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.