Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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'd like to change the behaviour of the launcher, so that if I click on the firefox icon, it runs the command

$ optirun firefox

Does anyone know how to change it?

Thank you

share|improve this question
up vote 13 down vote accepted

If you change it in the dash, you'll automatically change it in the launcher. So start "main menu" (that's alacarte) from the dash, navigate to Internet and then Firefox. There you can set a new Run-entry (replace firefox %u with optirun firefox %u - whatever optirun is). You could also edit the launcher manually with sudo vim /usr/share/applications/firefox.desktop and change the Exec line.

share|improve this answer
optirun is the command that lets you use your Nvidia driver. Bumblebee should be installed. – user204762 Dec 2 '13 at 8:39

--First copy the firefox.desktop to home by,

cp /usr/share/applications/firefox.desktop ~/.local/share/applications

if not present then create a new one in the above last location.

--Then open it for editing

gedit ~/.local/share/applications/firefox.desktop

--Third , add the following code.

[Optirun Shortcut Group]
Name=Optirun Firefox
Exec=optirun firefox

[NewWindow Shortcut Group]
Name=Open a New Window
Exec=firefox -new-window about:blank

Now save the File, browse through ~/.local/share/applications. From there drag the firefox.desktop to the launcher.


share|improve this answer

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.