[Pkg-acpi-devel] Bug#763134: acpi-support-base: /usr/share/acpi-support/power-funcs broken from line 24 if consolekit installed and no dbus running

waijb waijb at asamnet.de
Sun Oct 5 19:48:49 UTC 2014


Hi!

On 14:00 Fri 03 Oct     , Michael Meskes wrote:
> On Sun, Sep 28, 2014 at 05:12:45AM +0200, waijb wrote:
> > just testing if /usr/bin/ck-list-sessions is executable doesn't do the
> > trick.
> > until just now i had consolekit installed (some dependency somewhere), but
> > dbus was (and still is and will be) not running. this leads to an error in
> > line 25, ultimately no $user is set. the pinky check is not executed (but
> > would work just fine).
> 
> Did you actually try this or only call pinky to see if it displays anything?

yes, i tried it, works fine for me now - without ck-list-sessions.

> The reason I'm asking is that the script needs to know the display number and
> calculates that by asking ck-list-sessions again. If it indeed works for you
> I'd like to know how it came up with the right display number.

i didn't debug that and don't have the machine here right now.

from my original report i would guesstimate from:
+ d=/tmp/.X11-unix
    ^^^^^^^^^^^^^^
+ displaynum=0
+ getXuser
+ local plist display uid user startx pid userhome IFS
+ [ 0 ]
+ display=:0

laptop, just 1 X Session with just 1 DISPLAY. being generic probably
complicates things.

greets
waijb



More information about the Pkg-acpi-devel mailing list