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.

I am using xubuntu and there are a few types of files on website that instead of downloading and saving and then opening with emacs, I would rather when the radio button choice comes up say open with emacs. I am using xubuntu with xfce, and there is no line for a command to be entered as some ubuntu editions have. In the choice of changing the opening program from mousepad to something else, it says search and allows to navigate to find a program, but I cant find emacs anywhere not in etc/ or elsewhere. So where is its executable to direct the program chooser to?

Best.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Open a terminal and use which to find where in your $PATH executables are located:

$ which emacs
/usr/bin/emacs
$ echo $PATH
/home/redacted/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
share|improve this answer
    
Great! I didn't really need to use the PATH variable info though. Thanks! –  Vass Aug 26 '10 at 15:54
    
@Vass: Yes, I didn't mean to say you did, was only showing the directories that which and other utilities search (of course, yours may be different from mine). Glad I could help. –  Roger Pate Aug 27 '10 at 6:15
    
@Roger Pate, thanks again. Ah, now I see what you meant by $PATH. Geez there are so many things I have to learn. –  Vass Aug 27 '10 at 9:50
    
@Roger Pate, now I get it. Whenever I need to look for a certain program I can look at the list of paths in $PATH! And I guess that $PATH's purpose is for finding user programs so they get directed to this directory? Does this go for things like a browser or command line utilities? best! –  Vass Aug 27 '10 at 10:11
    
@Vass: You very rarely have to use $PATH directly as a user—except to add to it, as I've done with ~/bin in my ~/.profile, see the /home/redacted/bin part; you'd just use which to do the lookup for you (also see man which for -a). Applications have to use $PATH for this lookup to work, but doing so is a very old convention that you can usually assume (anything that doesn't probably has a bug). –  Roger Pate Aug 27 '10 at 10:36

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.