[Xfce-bugs] [Bug 10963] session management support broken

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Sun Sep 28 17:55:20 CEST 2014


https://bugzilla.xfce.org/show_bug.cgi?id=10963

Eric Koegel <eric at xfce.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eric at xfce.org

--- Comment #1 from Eric Koegel <eric at xfce.org> ---
So this bug is fun.

First you can kinda see what xfsm is up to by defining the XFSM_VERBOSE but it
wasn't showing as much as I would like, so there's a patch in git master to do
more.

I was using a couple applications to start with but narrowed things down to
just devhelp. I did notice the warning in the .xsession-errors:
(devhelp:29884): Gtk-WARNING **: Failed to register client:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.gnome.SessionManager was not provided by any .service files
But there's https://wiki.gnome.org/Projects/SessionManagement/NewGnomeSession
which still was talking about using xsmp so I figured everything was ok and the
bug is still in xfsm.

I also know most of the gnome applications are going over to GtkApplication in
GTK3. So I looked in there and
https://developer.gnome.org/gtk3/3.14/GtkApplication.html#GtkApplication--register-session
it's supposed to handle it for the clients. Awesome. It defaults to disabled,
but good enough as devhelp does set it to TRUE in dh_app_new:
https://git.gnome.org/browse/devhelp/tree/src/dh-app.c#n382

Looking around GTK+ in the various application files, I didn't see anything
referencing xsmp and hardcoded calls to org.gnome.SessionManager in
gtk_application_impl_dbus_startup
https://git.gnome.org/browse/gtk+/tree/gtk/gtkapplication-dbus.c#n135

So I'm guessing everyone is expected to copy gnome's SessionManager DBUS API or
keep using the "legacy" session management? I not sure copying gnome's API is a
great idea as they control both GTK and the session manager and can change
things in lock-step (i.e GTk 3.14 with Gnome 3.14) but break things for us.

I haven't looked into KDE's session manager at this time.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list