https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c5
--- Comment #5 from Martin Koller 2013-04-01 11:18:34 UTC ---
Looking into the script /usr/lib/acpid/power_button I find the comment:
# check if a X session is running and active.
# If not, shut down the system
So it seems this is prepared to do the right thing, but it does not work.
Debugging a bit I find that the debus call to check the active session returns
false (the line with IS_ACTIVE=...), e.g.:
dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit
/org/freedesktop/ConsoleKit/Session1
org.freedesktop.ConsoleKit.Session.IsActive
method return sender=:1.12 -> dest=:1.313 reply_serial=2
boolean false
and also the call "ck-list-sessions" shows active=false:
Session1:
unix-user = '1000'
realname = 'Martin Koller'
seat = 'Seat2'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = FALSE
on-since = '2013-03-30T14:52:35.546684Z'
login-session-id = '1'
No idea what the "active" flag should tell us, but this is the culprit why this
script does not work.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.