Bug#755140: Fails to shutdown or logout without gnome-shell
Joachim Breitner
nomeata at debian.org
Fri Jul 18 12:44:14 UTC 2014
Hi,
Am Freitag, den 18.07.2014, 14:16 +0200 schrieb Andreas Henriksson:
> > 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
Thanks again!
I tried to come up with a python script to answer these requests, but
it’s bound to fail: gnome-session refuses to talk to anything but the
real gnome-shell (note the SHELL_NAME):
proxy = dbus_g_proxy_new_for_name (shell->priv->bus_connection,
SHELL_NAME,
SHELL_END_SESSION_DIALOG_PATH,
SHELL_END_SESSION_DIALOG_INTERFACE);
(from gnome-session/gsm-shell.c).
With such a deep coupling of gnome-shell and gnome-session, I don’t
think its very viable to keep using gnome-session without gnome-shell.
Greetings,
Joachim
--
Joachim "nomeata" Breitner
Debian Developer
nomeata at debian.org | ICQ# 74513189 | GPG-Keyid: F0FBF51F
JID: nomeata at joachim-breitner.de | http://people.debian.org/~nomeata
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20140718/2b5a6b9b/attachment.sig>
More information about the pkg-gnome-maintainers
mailing list