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.

I'd like to add empathy to the list of programs to start up when starting an session, i looked at this page: https://help.ubuntu.com/community/AddingProgramToSessionStartup but I don't think this is adapted to 12.04 (see section "How to find the appropriate startup command")

So, how can i find out the command for a program to add to startup programs?

share|improve this question
    
This answer may help: askubuntu.com/a/126423/3940 –  Takkat Jun 21 '12 at 18:54
add comment

2 Answers 2

up vote 3 down vote accepted

To find out the command for any program you should type this in the terminal-

whereis *application name*

For example,

If you want to find out the command to run Gedit the type in the terminal-

whereis gedit

and you will get an output like this-

gedit: /usr/bin/gedit /usr/lib/gedit /usr/bin/X11/gedit /usr/share/gedit /usr/share/man/man1/gedit.1.gz

out of that,the very first path you see-/usr/bin/gedit is the path to the executable file...Which should be added in the startup applications list.. :)

Hope it helps

share|improve this answer
    
Glad it helped :) –  Nirmik Jun 24 '12 at 13:52
add comment

With

ps x -o args

you can get a list of running processes including the arguments that have been passed to the command.

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.