Wattos/LinuxSidewinderX6 — pull request #3 by ktoso (2011-11-06 02:23:27+00:00)
Title: Run scripts in his home dir and "as" this user

Hey there,
thanks a LOT for taking this to a point where all keybindings can be used!

I noticed the issue (#2) of running "as root" and hacked up a fix right away, see attached commits.

It's most probably not the cleanest way, but it's working nicely, feel free to refactor it anyway you see fit. I'll also try to clean it up a little on monday.

Tip: The trick with using `su --session-command=...` is required to workaround problems with "sorry, you must have a tty to run sudo".

Cheers and thanks a lot,
Konrad