Make gnome-session-check-accelerated-helper always return 1.
This prevents gnome-session from trying to start gnome-shell (which we still do not have) when prerequisites for it are there. This should fix issues seen by several where gnome-session would just fail to start by trying to run gnome-shell.
This commit is contained in:
parent
fbb3936550
commit
63aeef2c18
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.202 2011/12/03 22:17:17 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.203 2012/01/02 13:22:21 ajacoutot Exp $
|
||||
|
||||
COMMENT= GNOME session
|
||||
|
||||
GNOME_PROJECT= gnome-session
|
||||
GNOME_VERSION= 3.2.1
|
||||
REVISION= 6
|
||||
REVISION= 7
|
||||
|
||||
CATEGORIES= x11
|
||||
|
||||
|
@ -0,0 +1,17 @@
|
||||
$OpenBSD: patch-tools_gnome-session-check-accelerated-helper_c,v 1.1 2012/01/02 13:22:21 ajacoutot Exp $
|
||||
|
||||
XXX remove when we have gnome-shell.
|
||||
|
||||
--- tools/gnome-session-check-accelerated-helper.c.orig Mon Jan 2 14:19:34 2012
|
||||
+++ tools/gnome-session-check-accelerated-helper.c Mon Jan 2 14:19:17 2012
|
||||
@@ -260,6 +260,10 @@ main (int argc, char **argv)
|
||||
Display *display = NULL;
|
||||
int ret = 1;
|
||||
|
||||
+#ifdef __OpenBSD__
|
||||
+ _print_error ("Running on OpenBSD, forcing fallback mode.");
|
||||
+ goto out;
|
||||
+#endif
|
||||
display = XOpenDisplay (NULL);
|
||||
if (!display) {
|
||||
_print_error ("No X display.");
|
Loading…
Reference in New Issue
Block a user