[Bug 303595] Re: Gsynaptics loses settings on resume

2009-02-17 Thread BurakkuChi
NTolerance, For some reason, I couldn't get the same script you wrote to work. I slightly modified it and ended with: #!/bin/sh RUNUSER=`who | grep tty | sed 's/\([a-z]*\).*/\1/'` touchpad_init() { sleep 5 DISPLAY=:0.0 su ${RUNUSER} -c 'xhost +' DISPLAY=:0.0 su ${RUNUSER}

[Bug 303595] Re: Gsynaptics loses settings on resume

2009-02-17 Thread BurakkuChi
FYI, I didn't try until after everything was working, but you don't need the lines with 'xhost' in it. So you can just use the following: #!/bin/sh RUNUSER=`who | grep tty | sed 's/\([a-z]*\).*/\1/'` touchpad_init() { sleep 5 DISPLAY=:0.0 su ${RUNUSER} -c '/usr/bin/gsynaptics-in