summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorClement Lefebvre <[email protected]>2015-09-04 21:01:09 +0100
committerClement Lefebvre <[email protected]>2015-09-04 21:42:43 +0100
commitb01c41715ddad682c2e0d2a5eac8fa0deb91c5e8 (patch)
tree0cc52b63f49cefb7f0ab0d50f8cd4262ce156de8 /tools
parent725910927048248426f2224762506ef7008f2429 (diff)
downloadmate-session-manager-b01c41715ddad682c2e0d2a5eac8fa0deb91c5e8.tar.bz2
mate-session-manager-b01c41715ddad682c2e0d2a5eac8fa0deb91c5e8.tar.xz
Use org.gnome.SessionManager at /org/gnome/SessionManager as the DBUS API. This is necessary for compatibility and it brings support for many apps hardcoding GNOME support but also apps written in GTK (Gtk.Application taps into org.gnome.Session to register applications for a clean shutdown and for inhibition). It doesn't conflict with GNOME or Cinnamon (which both use the same name) since it's on the SessionBus. It makes mate-session aware of programs such as gedit, etc.. which might need to save people's work before logout, it brings support for totem inhibiting the session etc etc..
Diffstat (limited to 'tools')
-rw-r--r--tools/mate-session-inhibit.c6
-rw-r--r--tools/mate-session-save.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/mate-session-inhibit.c b/tools/mate-session-inhibit.c
index f66598b..6473735 100644
--- a/tools/mate-session-inhibit.c
+++ b/tools/mate-session-inhibit.c
@@ -86,9 +86,9 @@ static gboolean inhibit (const gchar *app_id,
}
ret = g_dbus_connection_call_sync (bus,
- "org.mate.SessionManager",
- "/org/mate/SessionManager",
- "org.mate.SessionManager",
+ "org.gnome.SessionManager",
+ "/org/gnome/SessionManager",
+ "org.gnome.SessionManager",
"Inhibit",
g_variant_new ("(susu)",
app_id, 0, reason, flags),
diff --git a/tools/mate-session-save.c b/tools/mate-session-save.c
index d80f461..b64ae90 100644
--- a/tools/mate-session-save.c
+++ b/tools/mate-session-save.c
@@ -33,9 +33,9 @@
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-lowlevel.h>
-#define GSM_SERVICE_DBUS "org.mate.SessionManager"
-#define GSM_PATH_DBUS "/org/mate/SessionManager"
-#define GSM_INTERFACE_DBUS "org.mate.SessionManager"
+#define GSM_SERVICE_DBUS "org.gnome.SessionManager"
+#define GSM_PATH_DBUS "/org/gnome/SessionManager"
+#define GSM_INTERFACE_DBUS "org.gnome.SessionManager"
enum {
GSM_LOGOUT_MODE_NORMAL = 0,