Re: [Spice-devel] [PATCH spice-gtk 2/3] Add a desktop-integration helper class

2012-06-15 Thread Marc-André Lureau
Hi - Mensaje original - > Ok, yet another change of plan, if David Zeuthen agrees I'm going to > change udisks, so > that it is possible to do an inhibit which is only valid for the > calling UID. > > > One problem with this approach is that udisks2 seems to lack > > inhibit functionality

Re: [Spice-devel] [PATCH spice-gtk 2/3] Add a desktop-integration helper class

2012-06-15 Thread Marc-André Lureau
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

Re: [Spice-devel] [PATCH spice-gtk 2/3] Add a desktop-integration helper class

2012-06-15 Thread Hans de Goede
Hi, On 06/15/2012 10:02 AM, Hans de Goede wrote: Hi, On 06/14/2012 04:19 PM, Hans de Goede wrote: Hi, On 06/14/2012 02:43 PM, Marc-André Lureau wrote: Hi - Mensaje original - so why having a 1-1 relation with each spice session? We also need to undo the changes at some point in t

Re: [Spice-devel] [PATCH spice-gtk 2/3] Add a desktop-integration helper class

2012-06-15 Thread Hans de Goede
Hi, On 06/14/2012 04:19 PM, Hans de Goede wrote: Hi, On 06/14/2012 02:43 PM, Marc-André Lureau wrote: Hi - Mensaje original - so why having a 1-1 relation with each spice session? We also need to undo the changes at some point in time, iow the desktop-integration objects lifetime n

Re: [Spice-devel] [PATCH spice-gtk 2/3] Add a desktop-integration helper class

2012-06-14 Thread Hans de Goede
Hi, On 06/14/2012 02:43 PM, Marc-André Lureau wrote: Hi - Mensaje original - so why having a 1-1 relation with each spice session? We also need to undo the changes at some point in time, iow the desktop-integration objects lifetime needs to be coupled to *something*, and spice-sessio

Re: [Spice-devel] [PATCH spice-gtk 2/3] Add a desktop-integration helper class

2012-06-14 Thread Marc-André Lureau
Hi - Mensaje original - > > so why having a 1-1 relation with each spice session? > > We also need to undo the changes at some point in time, iow the > desktop-integration objects > lifetime needs to be coupled to *something*, and spice-session seems > best for this. IE, > think usage in

Re: [Spice-devel] [PATCH spice-gtk 2/3] Add a desktop-integration helper class

2012-06-14 Thread Hans de Goede
Hi, On 06/14/2012 11:28 AM, Marc-André Lureau wrote: Hi - Mensaje original - Looks reasonable to me, however, I don't see why it should be in spice-glib, since it's very much desktop related. Wouldn't it make more sense in spice-gtk? I actually put it in spice-gtk at first, but that

Re: [Spice-devel] [PATCH spice-gtk 2/3] Add a desktop-integration helper class

2012-06-14 Thread Marc-André Lureau
Hi - Mensaje original - > > Looks reasonable to me, however, I don't see why it should be in > > spice-glib, since it's very much desktop related. Wouldn't it make > > more sense in spice-gtk? > > I actually put it in spice-gtk at first, but that does not work very > well > because usb-

Re: [Spice-devel] [PATCH spice-gtk 2/3] Add a desktop-integration helper class

2012-06-14 Thread Hans de Goede
Hi, On 06/14/2012 12:05 AM, Marc-André Lureau wrote: Hi On Wed, Jun 13, 2012 at 7:07 PM, Hans de Goede wrote: We need to integrate closely with the desktop environment of the user in several cases. Some examples are disabling auto-mounting when auto-usbredir is active (rhbz#812972), and disa

Re: [Spice-devel] [PATCH spice-gtk 2/3] Add a desktop-integration helper class

2012-06-13 Thread Marc-André Lureau
Hi On Wed, Jun 13, 2012 at 7:07 PM, Hans de Goede wrote: > We need to integrate closely with the desktop environment of the user in > several cases. Some examples are disabling auto-mounting when auto-usbredir > is active (rhbz#812972), and disabling the screensaver when fullscreen > (fdo#34793)

[Spice-devel] [PATCH spice-gtk 2/3] Add a desktop-integration helper class

2012-06-13 Thread Hans de Goede
We need to integrate closely with the desktop environment of the user in several cases. Some examples are disabling auto-mounting when auto-usbredir is active (rhbz#812972), and disabling the screensaver when fullscreen (fdo#34793). Unfortuntely these kinds of things require desktop environment sp