4

Is there a way to get a program (i.e. Firefox) to execute with the nice command from the Launcher ("nice firefox")? Saw one (1) post elsewhere saying you could right-click the Launch icon and select "Edit command," but mine do not seem to have that option. (Ubuntu 14.04 LTS)

Jacob Vlijm
  • 85,475
NathanH
  • 85

1 Answers1

7

Imo the best way to do that is adding a right- click (quicklist) entry to the firefox launcher. There are a few options:

1. Manually

  1. copy the firefox launcher from /usr/share/applications to ~/.local/share/applications

    cp /usr/share/applications/firefox.desktop ~/.local/share/applications
    
  2. Open the file with (e.g.) gedit, Look for the line starting with:

    Actions=
    

    Add "Nice firefox" to the line:

    Actions=NewWindow;Nice firefox;
    

    Add to the very bottom of the file a section:

    [Desktop Action Nice firefox]
    Name=Nice firefox
    Exec=nice -10 firefox
    
  3. Now save the file, log out and back in. A new entry appears:

    enter image description here

2. Use a GUI quicklist editor

...like this one

enter image description here

After installing, open the editor, choose the firefox launcher from the list (no need to say it needs to be locked to the launcher), and click the big + to add your entry.

To install:

sudo add-apt-repository ppa:vlijm/qle
sudo apt-get update
sudo apt-get install qle
Jacob Vlijm
  • 85,475