Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've created a custom script to launch VirtualBox that replaced the original script in ¸/usr/bin/¸. So running VirtualBox in a terminal launches my script. However, pressing super key and type "virtualbox" in Gnome Shell launcher brings the old original script.

How can I change that behavior so that when I type virtualbox in Gnome Shell launcher my custom script runs?

share|improve this question
up vote 3 down vote accepted

Look for the file /usr/share/applications/virtualbox.desktop. On my system, it has the following contents:

[Desktop Entry]
Name=Oracle VM VirtualBox
GenericName=Virtual Machine
Exec=VirtualBox %U

Simply change the Exec part to point to your custom executable/script.

See also

Thomas Nyman's answer to a similar question.

share|improve this answer
Perfect! thanks. The thing that's weird is that when I run the command "locate virtualbox.desktop" the output was empty. – Rombus Nov 30 '13 at 21:37
@Rombus No that's not weird. It just means your locatedb isn't up-to-date. You need to run updatedb first. See man locate. – Joseph R. Nov 30 '13 at 21:43

Your Answer


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.