gnome-session: how to shutdown gnome-session from root?
- From: Stefano Sabatini <stefano.sabatini-lala@xxxxxxxx>
- Date: Fri, 8 Dec 2006 15:43:22 +0100
Hi all,
I would like like to setup acpid to automatically launch the
gnome-session-save program when the power button is pressed (and gnome
is running).
The problem is that when I run from the power-button associated script
the command:
sudo gnome-session-save --gui --kill
I get this message in a GTK error window dialog:
"Could not connect to the session manager"
I've tried this either running sudo with the identity of the owner of
the gnome-session user with:
sudo -u <gnome username> gnome-session-save --gui --kill
getting the same result.
I'm using gnome-session 2.14.3 (Debian unstable).
How can I convince gnome-session-save to execute the command launched
by root?
Is there another system to shutdown automatically and gently gnome
(maybe sending some signal to the gnome-session process)?
Thanks in advance for any help.
Cheers
--
Stefano Sabatini
Linux user number 337176 (see http://li.count.org)
_______________________________________________
gnome-list mailing list
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list
- Follow-Ups:
- Re: gnome-session: how to shutdown gnome-session from root?
- From: Ritesh Khadgaray
- Re: gnome-session: how to shutdown gnome-session from root?
- Prev by Date: Nautilus crashing for single user, even after replacing user's entire homedir with known good homedir
- Next by Date: Make GNOME aware of custom URI Scheme
- Previous by thread: Nautilus crashing for single user, even after replacing user's entire homedir with known good homedir
- Next by thread: Re: gnome-session: how to shutdown gnome-session from root?
- Index(es):