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.

This question already has an answer here:

I've installed BlueGriffon on Ubuntu 13.04 x64bit. I've add it to Unity Launcher by creating a "bluegriffon.desktop" file. Now I want to launch bluegriffon directly from terminal; assuming that the prgram folder is on the path /home/username/programs/bluegriffon and assuming that the laucher's file name is bluegriffon, which code I have to add to .bashrc and .profile?

Note: I tried to add PATH to .profile, but it doesn't work.

share|improve this question

marked as duplicate by Radu Rădeanu, Warren Hill, Braiam, Eric Carvalho, Alvar Oct 2 '13 at 10:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers 2

You can add symbolic link to /bin or /usr/local/bin for executable file. For example:

ln -s /home/username/programs/bluegriffon/EXECUTABLE.sh /usr/local/bin/bluegriffon
share|improve this answer

To launch it from the terminal by entering its name only (in this case 'bluergriffon') you will need the program's folder in your path. The path is set using the PATH environment variable and you can add the following to .profile to set it:

export PATH=$PATH:/home/username/programs/bluegriffon

This appends the new folder to the existing value of the PATH variable so you don't lose the existing contents.

The 'export' command makes the value of the environment variable available to subprocesses.

Hope that helps.

share|improve this answer
    
Remember the quotes around $PATH! :-) –  Andrea Corbellini Oct 1 '13 at 8:43

Not the answer you're looking for? Browse other questions tagged or ask your own question.