Confirmed, you are spot on, something is causing that script to fail to
spot KDE is running, and it *was* falling though to the end.

I'll poke at it and see if I can locate what goes wrong... initial
testing by putting the code from the main script into the command line
(konsole) indicates it's in the support functions.

fal...@wopr:~$ . /usr/share/acpi-support/power-funcs
fal...@wopr:~$ getXuser() {
>         user=`pinky -fw | awk '{ if ($2 == ":'$displaynum'" || $(NF) == 
> ":'$displaynum'" ) { print $1; exit; } }'`
>         if [ x"$user" = x"" ]; then
>                 startx=`pgrep -n startx`
>                 if [ x"$startx" != x"" ]; then
>                         user=`ps -o user --no-headers $startx`
>                 fi
>         fi
>         if [ x"$user" != x"" ]; then
>                 userhome=`getent passwd $user | cut -d: -f6`
>                 export XAUTHORITY=$userhome/.Xauthority
>         else
>                 export XAUTHORITY=""
>         fi
>         export XUSER=$user
> }
fal...@wopr:~$ getXconsole
Couldn't get a file descriptor referring to the console
fal...@wopr:~$ echo $XUSER

fal...@wopr:~$

-- 
kde power button configuration ignored
https://bugs.launchpad.net/bugs/553557
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to