openbsd-ports/x11/gnome/session/patches/patch-gnome-session_gsm-consolekit_c
2011-04-06 18:33:03 +00:00

17 lines
653 B
Plaintext

$OpenBSD: patch-gnome-session_gsm-consolekit_c,v 1.5 2011/04/06 18:33:03 ajacoutot Exp $
--- gnome-session/gsm-consolekit.c.orig Tue Feb 9 14:22:01 2010
+++ gnome-session/gsm-consolekit.c Wed Apr 6 20:28:51 2011
@@ -728,6 +728,12 @@ gsm_consolekit_can_switch_user (GsmConsolekit *manager
error = NULL;
+/* User switching requires running another new X server which will not
+ * work by default on OpenBSD.
+ */
+#ifdef __OpenBSD__
+ return FALSE;
+#endif
if (!gsm_consolekit_ensure_ck_connection (manager, &error)) {
g_warning ("Could not connect to ConsoleKit: %s",
error->message);