I want to set up steam to run automatically with a higher than default priority, which involves starting it with nice. But to set a priority lower than 0, I must be root. Problem is that steam doesn't like to be started as root, so if I do something like sudo nice -n -1 steam it says that it cannot be started as root. Furthermore, if I use sudo -u myusername nice -n -1 steam, nice complains that it hasn't got the privileges to set that priority.
I used visudo to give myuser the privilege to run sudo nice without password, but it was futile.
I know this HAS to have been answered somewhere else, but I don't know how to search.. it's a rather specific problem.
Thanks in advance
EDIT: using renice AFTER I started steam won't do, because the child processes (games) won't inherit the nice value from the parent that way