summaryrefslogtreecommitdiff
path: root/mate-session/gsm-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-session/gsm-manager.c')
-rw-r--r--mate-session/gsm-manager.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mate-session/gsm-manager.c b/mate-session/gsm-manager.c
index 1e393ac..8143d1f 100644
--- a/mate-session/gsm-manager.c
+++ b/mate-session/gsm-manager.c
@@ -1001,9 +1001,13 @@ manager_switch_user (GsmManager *manager)
MDM_FLEXISERVER_ARGS);
error = NULL;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ res = g_spawn_command_line_sync (command, NULL, NULL, NULL, &error);
+#else
res = gdk_spawn_command_line_on_screen (gdk_screen_get_default (),
command,
&error);
+#endif
g_free (command);
@@ -1019,9 +1023,13 @@ manager_switch_user (GsmManager *manager)
GDM_FLEXISERVER_ARGS);
error = NULL;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ res = g_spawn_command_line_sync (command, NULL, NULL, NULL, &error);
+#else
res = gdk_spawn_command_line_on_screen (gdk_screen_get_default (),
command,
&error);
+#endif
g_free (command);