Currently, there is only a plug to use
org.freedesktop.login1 but to logout from the current sessions, I can’t find a better alternative to the
org.gnome.SessionManager dbus for Gnome and the similar one for KDE. Now, this slot seems to be similar to the
login-session-control, so, I was trying to create one, but failed to find proper docs. Can I get some help on this?
Also if there is a better alternative to logout from the current, it is also requested.
This is for the
savedesktop snap, that I am currently working with the upstream, as they are interested to publish it in the store. This is the review I got today from @alexmurray
“The dbus names like org.gnome.SessionManager are provided by system components (like gnome-session on a regular Ubuntu desktop) and so cannot be claimed for use by snaps. Also since only one application can bind to a given dbus name at a time, a snap such as this would not be able to bind to this name either. If your snap requires the ability to talk with org.gnome.SessionManager, then instead perhaps a new snapd interface should be created to support this.” — Alex Murray
Can you shed some light on to this? The upstream repo is https://github.com/vikdevelop/SaveDesktop