pkgsrc/x11/gdm/patches/patch-ar
jmcneill 728a2be8a7 GDM is "special". If automatic VT allocation is not enabled, in order to
determine the VT it is using it will attempt to parse the X server's log
file looking for the string 'using VT number '. If GDM doesn't know what
VT it's using, it is unable to pass that information to ConsoleKit, so the
session is treated as always inactive.

Enable automatic VT allocation by default, and piggyback on the Linux/SunOS
VT switching code using wsdisplay usl emulation for NetBSD.

Also, PKGREVISION++
2008-11-23 22:06:49 +00:00

16 lines
507 B
Text

$NetBSD: patch-ar,v 1.3 2008/11/23 22:06:49 jmcneill Exp $
--- daemon/gdmconsolekit.c.orig 2008-11-23 14:20:12.000000000 -0500
+++ daemon/gdmconsolekit.c 2008-11-23 14:21:02.000000000 -0500
@@ -457,7 +457,11 @@
char *device;
/* FIXME: how does xorg construct this */
+#ifdef __NetBSD__
+ device = g_strdup_printf ("/dev/ttyE%d", d->vt - 1);
+#else
device = g_strdup_printf ("/dev/tty%d", d->vt);
+#endif
add_param_string (&iter_struct, "x11-display-device", device);
g_free (device);
}