Hi, Am Freitag, den 18.07.2014, 14:57 +0200 schrieb Andreas Henriksson: > On Fri, Jul 18, 2014 at 02:44:14PM +0200, Joachim Breitner wrote: > > Hi, > > > > 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): > [...] > > And the "real" gnome-shell is whoever listens to "org.gnome.Shell".... > > Sorry, I fail to see the problem here. Why can't you implement > "org.gnome.Shell" ? > Wasn't that the excercise all the time? To reimplement the Shell dbus api?
maybe, but I was under the impression that a clean interface would not address a specific object name, but tries to find a counterpart via a general interface, i.e. via: define SHELL_END_SESSION_DIALOG_PATH "/org/gnome/SessionManager/EndSessionDialog" define SHELL_END_SESSION_DIALOG_INTERFACE "org.gnome.SessionManager.EndSessionDialog" I would expect putting an object on the bus pretending to be gnome-shell (but not implementing _all_ its interfaces) will cause other unexpected behavior. It might work as a work-around but it’d be quite an ugly hack. (Another is "killall gnome-session; killall gnome-session" to log out...) Greetings, Joachim -- Joachim "nomeata" Breitner Debian Developer nome...@debian.org | ICQ# 74513189 | GPG-Keyid: F0FBF51F JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata
signature.asc
Description: This is a digitally signed message part