« Return to Thread: Exec a command before and after suspeding

Re: Exec a command before and after suspeding

by Peter Jones-18 :: Rate this Message:

Reply to Author | View in Thread

On Wed, 2006-12-13 at 13:29 +0100, Frittella Laurento wrote:
> Can g-p-m exec a custom command before and after suspend without root
> privileges?
> If I use OnSuspend and OnResume in the hibernate configuration the
> command will start with root privileges and it doesn't work as it should
> (I want to interact with some applications using the DBus session of the
> user that runs g-p-m).

We don't really have any infrastructure for that yet, unfortunately.
Probably the easiest thing to do is something like what I've done in
http://people.redhat.com/pjones/rhythmbox-pm.tar.bz2

--
  Peter

_______________________________________________
gnome-power-manager-list mailing list
gnome-power-manager-list@...
http://mail.gnome.org/mailman/listinfo/gnome-power-manager-list

 « Return to Thread: Exec a command before and after suspeding