Bug#755140: Fails to shutdown or logout without gnome-shell

Andreas Henriksson andreas at fatal.se
Fri Jul 18 12:16:39 UTC 2014


Hello!

On Fri, Jul 18, 2014 at 12:29:16PM +0200, Joachim Breitner wrote:
> Hi Andreas,
> 
> thanks for your insights!
> 
> I can understand that gnome-session doesn’t want to show a dialog any
> more. But shouldn’t then
> $ gnome-session-quit --logout --no-prompt
> work?

I don't know. You tell me! ;)
I didn't design this thing and I have gnome-shell so everything works for me.

> 
> Also, I would expect gnome-session to behave more sensibly if it cannot
> ask anyone to do the confirmation, e.g. then shutdown.
> 
> Am Freitag, den 18.07.2014, 12:03 +0200 schrieb Andreas Henriksson:
> > better solution would be to implement something to listen to the correct
> > set of DBus API to show the poweroff/reboot/logout dialog depending
> > on which component you think should be in charge of that graphical
> > details.
> 
> Is there a documentation of this API somewhere?

I don't know. I'm looking up things as we go here....

The signalling between gnome-session (manager) and gnome-shell
seems to be handled via an abstraction in gnome-session/gsm-shell.c
where the outgoing calls are made and replies interpretted and converted
to gsm-internal glib signals.

Usually the dbus api is described in a .xml file, but in gnome-shells
case it seems it has been embedded in the javascript code.
eg. https://git.gnome.org/browse/gnome-shell/tree/js/ui/endSessionDialog.js#n48


Regards,
Andreas Henriksson



More information about the pkg-gnome-maintainers mailing list