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)
Asked
Active
Viewed 270 times
1 Answers
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
copy the firefox launcher from
/usr/share/applications
to~/.local/share/applications
cp /usr/share/applications/firefox.desktop ~/.local/share/applications
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
Now save the file, log out and back in. A new entry appears:
2. Use a GUI quicklist editor
...like this one
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
- 83,767
nice -10 /opt/google/chrome/google-chrome
ornice -10 firefox
(If the executable isn't on your path you need to provide it in full.) – Elder Geek Dec 19 '16 at 23:11