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 have several executable bin files in ~/bin and I want to launch them using the Gnome environment. For example, pressing the Super (Windows) key, typing the name in the search bar and then launch it.

How can I do this? What directory will Alt + F2 look for?

And are they (search bar and Alt + F2) the same one?

share|improve this question

1 Answer 1

They are not the same one.

The Alt-F2 prompt will autocomplete and execute anything that is in the PATH environment variable. This means that to be able to execute your files in ~/bin from there, you just need to set up the PATH variable in your ~/.bashrc file, adding the ~/bin path to it:

# just add this line to your bashrc
PATH=~/bin:${PATH}

However, the search bar that you get when pressing Super is a completely different thing. To get an application showing up there you must add it to the menu, using the alacarte program, check out the explanation in this question: Adding custom applications to Gnome launcher

share|improve this answer

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.