On Sat, Nov 22, 2008, Bart Samwel wrote:
>   dbus-pm)
>           if [ -x /usr/bin/dbus-send ] ; then
> +                getXconsole
> +                . $userhome/.dbus/session-bus/*
>                   # Call the power management daemon (which, if it is
>                   # running, we probably don't know about, since we send

 a) don't source all files obviously :)
 b) The layout is $(cat /var/lib/dbus/machine-id)-$DISPLAY; perhaps you
 need to try for all displays, or you need to ask ConsoleKit about the
 active console / display if available?
 c) as pointed out by others, it might be a bad idea to do this as root;
 you could run this as the user within su and disabling login shell, but
 this starts going quite far

-- 
Loïc Minier



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to