Re: shutdown on power button?
On Wed, May 19, 2010 at 04:17:49PM +0200, Luca Niccoli wrote:
> This would be definitely a bug, not intended behaviour.
I absolutely agree. This code is used to find out of powerdevil is running:
for p in $(pidof kded4); do
test -r /proc/$p/environ || continue
local DBUS_SESS=$(cat /proc/$p/environ | grep -a -z "DBUS_SESSION_BUS_ADDRESS=")
test "$DBUS_SESS" != "" || continue
(su - $(ps -o user= $p) -s /bin/sh -c "$DBUS_SESS dbus-send --print-reply --dest=org.kde.kded /kded org.kde.kded.loadedModules" | grep -q powerdevil) && return 0
done
Could you please try to debug this so we can find out why it didn't work for
you? I know for sure that it used to work.
Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
ICQ 179140304, AIM/Yahoo/Skype michaelmeskes, Jabber meskes@jabber.org
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL
Reply to: