[Spice-devel] [PATCH spice-gtk 2/3] Add a desktop-integration helper class
Marc-André Lureau
mlureau at redhat.com
Fri Jun 15 03:12:46 PDT 2012
Hi
----- Mensaje original -----
> > Also, changing the user settings looks like the wrong approach.
> > Perhaps something similar to screensaver Inhibit on
> > org.gnome.SessionManager is needed?
>
> Something like screensaver Inhibit on org.gnome.SessionManager would
> be ideal,
> but that won't help us with RHEL-6 (gnome-2), kde / xfce / etc. Also
Any solution will probably specific to a desktop, and your patch doesn't seem different since it addresses gnome 3 that we can still modify.
> One possible idea would be the following:
> -we add a /usr/libexec/spice-gtk-<arch>/spice-desktop-integration
> executable,
> which listens on a unix socket under $HOME
> -that process controls disabling / enabling automount, screensaver,
> etc.
Sounds like you are trying to proxy what should be in gnome-settings-daemon. If another process decides to implement the same thing, they will conflict.
> -one or more spice-gtk sessions can give it (un)inhibit-automount
> commands,
> when inhibiting the spice-gtk sessions must keep the unix socket
> open, closing
> it is an automatic uninhibit.
This kind of connection can be initiated and tracked with dbus.
> -this process gets started the first time it is needed, and exits
> when the
> session dbus goes away
This is trivial to do thank to dbus service activation.
More information about the Spice-devel
mailing list