[Bug 553557] Re: kde power button configuration ignored

Tom Chiverton bugs.launchpad.net at falkensweb.com
Mon May 3 21:10:55 UTC 2010


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.

falken at wopr:~$ . /usr/share/acpi-support/power-funcs
falken at 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
> }
falken at wopr:~$ getXconsole
Couldn't get a file descriptor referring to the console
falken at wopr:~$ echo $XUSER

falken at wopr:~$

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




More information about the kubuntu-bugs mailing list