FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 05-19-2010, 05:30 PM
Michael Meskes
 
Default 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


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100519173011.GC12938@hyperion.credativ.de">http://lists.debian.org/20100519173011.GC12938@hyperion.credativ.de
 
Old 05-22-2010, 08:21 AM
Salvo Tomaselli
 
Default shutdown on power button?

On Wednesday 19 May 2010 19:30:11 Michael Meskes wrote:
> 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.

I am sorry for the late reply. I've spotted the problem and it was in my local
configuration rather than in that script.
I was enabling bash_completion in the profile and not in bashrc, so it was
trying to be loaded and failed at some point, returning !=0, so the script
took this return value meaning that powerdevil wasn't running.

I think i should also close the bug, and.. sorry :-)

Bye

--
Salvo Tomaselli
 
Old 05-23-2010, 10:08 AM
Michael Meskes
 
Default shutdown on power button?

On Sat, May 22, 2010 at 10:21:08AM +0200, Salvo Tomaselli wrote:
> I think i should also close the bug, and.. sorry :-)

Don't worry, stuff like this happens.

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


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100523100810.GA1993@feivel.credativ.lan">http://lists.debian.org/20100523100810.GA1993@feivel.credativ.lan
 

Thread Tools




All times are GMT. The time now is 12:00 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org