How to set a permanent process priority?

D. Michael McIntyre michael.mcintyre at rosegardenmusic.com
Thu Sep 13 00:35:35 BST 2007


On Wednesday 12 September 2007, Ali Milis wrote:
> But is there a way to set a permanent priority?

I can't find one.  A common suggestion among the articles I found is to wrap 
it in a script.

To avoid problems with upgrades, you could put the script in /usr/local/bin, 
and ensure your PATH puts /usr/local first, which I think is pretty typical 
out of the box.

For example, /usr/bin/audacity becomes

#!/bin/bash
/usr/bin/audacity
renice -5 $(pidof audacity)

Or something like that.  Running "audacity" would find the script 
in /usr/local/bin first.  This wouldn't work if launching from an icon or 
menu entry that's pointing directly at /usr/bin/audacity.  You'd have to 
change this.
-- 
D. Michael McIntyre 



More information about the kubuntu-users mailing list