ec33c14
diff -up gdm-2.29.1/configure.ac.force-active-vt gdm-2.29.1/configure.ac
ec33c14
--- gdm-2.29.1/configure.ac.force-active-vt	2009-11-30 17:23:11.000000000 -0500
ec33c14
+++ gdm-2.29.1/configure.ac	2009-12-02 23:31:13.064009409 -0500
ec33c14
@@ -1254,6 +1254,23 @@ AC_SUBST(GDM_SCREENSHOT_DIR)
ec33c14
 
1429e32
 
1429e32
 dnl ---------------------------------------------------------------------------
1429e32
+dnl - Directory to spool events from other processes
1429e32
+dnl ---------------------------------------------------------------------------
1429e32
+
1429e32
+AC_ARG_WITH(spool-dir,
1429e32
+            AS_HELP_STRING([--with-spool-dir=<dir>],
1429e32
+                           [spool directory]))
1429e32
+
1429e32
+if ! test -z "$with_spool_dir"; then
1429e32
+   GDM_SPOOL_DIR=$with_spool_dir
1429e32
+else
1429e32
+   GDM_SPOOL_DIR=${localstatedir}/spool/gdm
1429e32
+fi
1429e32
+
1429e32
+AC_SUBST(GDM_SPOOL_DIR)
1429e32
+
1429e32
+
1429e32
+dnl ---------------------------------------------------------------------------
1429e32
 dnl - Finish
1429e32
 dnl ---------------------------------------------------------------------------
1429e32
 
ec33c14
diff -up gdm-2.29.1/daemon/gdm-display.c.force-active-vt gdm-2.29.1/daemon/gdm-display.c
ec33c14
--- gdm-2.29.1/daemon/gdm-display.c.force-active-vt	2009-11-16 17:37:43.000000000 -0500
ec33c14
+++ gdm-2.29.1/daemon/gdm-display.c	2009-12-02 23:31:13.065009323 -0500
7708159
@@ -65,7 +65,9 @@ struct GdmDisplayPrivate
1429e32
         gsize                 x11_cookie_size;
1429e32
         GdmDisplayAccessFile *access_file;
1429e32
 
1429e32
-        gboolean              is_local;
1429e32
+        guint                 is_local : 1;
1429e32
+        guint                 force_active_vt : 1;
1429e32
+
1429e32
         guint                 finish_idle_id;
1429e32
 
1429e32
         GdmSlaveProxy        *slave_proxy;
7708159
@@ -84,6 +86,7 @@ enum {
1429e32
         PROP_X11_COOKIE,
1429e32
         PROP_X11_AUTHORITY_FILE,
1429e32
         PROP_IS_LOCAL,
1429e32
+        PROP_FORCE_ACTIVE_VT,
1429e32
         PROP_SLAVE_COMMAND,
1429e32
 };
1429e32
 
ec33c14
@@ -574,9 +577,10 @@ gdm_display_real_prepare (GdmDisplay *di
1429e32
         gdm_slave_proxy_set_log_path (display->priv->slave_proxy, log_path);
1429e32
         g_free (log_path);
1429e32
 
1429e32
-        command = g_strdup_printf ("%s --display-id %s",
1429e32
+        command = g_strdup_printf ("%s --display-id %s %s",
1429e32
                                    display->priv->slave_command,
1429e32
-                                   display->priv->id);
1429e32
+                                   display->priv->id,
1429e32
+                                   display->priv->force_active_vt? "--force-active-vt" : "");
1429e32
         gdm_slave_proxy_set_command (display->priv->slave_proxy, command);
1429e32
         g_free (command);
1429e32
 
ec33c14
@@ -824,6 +828,13 @@ _gdm_display_set_is_local (GdmDisplay   
1429e32
 }
1429e32
 
1429e32
 static void
1429e32
+_gdm_display_set_force_active_vt (GdmDisplay     *display,
1429e32
+                                  gboolean        force_active_vt)
1429e32
+{
1429e32
+        display->priv->force_active_vt = force_active_vt;
1429e32
+}
1429e32
+
1429e32
+static void
1429e32
 _gdm_display_set_slave_command (GdmDisplay     *display,
1429e32
                                 const char     *command)
1429e32
 {
ec33c14
@@ -866,6 +877,9 @@ gdm_display_set_property (GObject       
1429e32
         case PROP_IS_LOCAL:
1429e32
                 _gdm_display_set_is_local (self, g_value_get_boolean (value));
1429e32
                 break;
1429e32
+        case PROP_FORCE_ACTIVE_VT:
1429e32
+                _gdm_display_set_force_active_vt (self, g_value_get_boolean (value));
1429e32
+                break;
1429e32
         case PROP_SLAVE_COMMAND:
1429e32
                 _gdm_display_set_slave_command (self, g_value_get_string (value));
1429e32
                 break;
ec33c14
@@ -914,6 +928,9 @@ gdm_display_get_property (GObject       
1429e32
         case PROP_IS_LOCAL:
1429e32
                 g_value_set_boolean (value, self->priv->is_local);
1429e32
                 break;
1429e32
+        case PROP_FORCE_ACTIVE_VT:
1429e32
+                g_value_set_boolean (value, self->priv->force_active_vt);
1429e32
+                break;
1429e32
         case PROP_SLAVE_COMMAND:
1429e32
                 g_value_set_string (value, self->priv->slave_command);
1429e32
                 break;
ec33c14
@@ -1084,6 +1101,13 @@ gdm_display_class_init (GdmDisplayClass 
1429e32
                                                                NULL,
1429e32
                                                                TRUE,
1429e32
                                                                G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
1429e32
+        g_object_class_install_property (object_class,
1429e32
+                                         PROP_FORCE_ACTIVE_VT,
1429e32
+                                         g_param_spec_boolean ("force-active-vt",
1429e32
+                                                               NULL,
1429e32
+                                                               NULL,
1429e32
+                                                               FALSE,
1429e32
+                                                               G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
1429e32
 
1429e32
         g_object_class_install_property (object_class,
1429e32
                                          PROP_SLAVE_COMMAND,
ec33c14
diff -up gdm-2.29.1/daemon/gdm-server.c.force-active-vt gdm-2.29.1/daemon/gdm-server.c
ec33c14
--- gdm-2.29.1/daemon/gdm-server.c.force-active-vt	2009-11-16 17:37:43.000000000 -0500
ec33c14
+++ gdm-2.29.1/daemon/gdm-server.c	2009-12-02 23:31:13.066009518 -0500
1429e32
@@ -34,6 +34,8 @@
1429e32
 #include <signal.h>
1429e32
 #include <sys/resource.h>
1429e32
 
1429e32
+#include <linux/vt.h>
1429e32
+
1429e32
 #include <glib.h>
1429e32
 #include <glib/gi18n.h>
1429e32
 #include <glib/gstdio.h>
7708159
@@ -663,6 +665,44 @@ gdm_server_spawn (GdmServer  *server,
1429e32
         return ret;
1429e32
 }
1429e32
 
1429e32
+static int
1429e32
+get_active_vt (void)
1429e32
+{
1429e32
+        int console_fd;
1429e32
+        struct vt_stat console_state = { 0 };
1429e32
+
1429e32
+        console_fd = open ("/dev/tty0", O_RDONLY | O_NOCTTY);
1429e32
+
1429e32
+        if (console_fd < 0) {
1429e32
+                goto out;
1429e32
+        }
1429e32
+
1429e32
+        if (ioctl (console_fd, VT_GETSTATE, &console_state) < 0) {
1429e32
+                goto out;
1429e32
+        }
1429e32
+
1429e32
+out:
1429e32
+        if (console_fd >= 0) {
1429e32
+                close (console_fd);
1429e32
+        }
1429e32
+
1429e32
+        return console_state.v_active;
1429e32
+}
1429e32
+
1429e32
+static char *
1429e32
+get_active_vt_as_string (void)
1429e32
+{
1429e32
+        int vt;
1429e32
+
1429e32
+        vt = get_active_vt ();
1429e32
+
1429e32
+        if (vt <= 0) {
1429e32
+                return NULL;
1429e32
+        }
1429e32
+
1429e32
+        return g_strdup_printf ("vt%d", vt);
1429e32
+}
1429e32
+
1429e32
 /**
1429e32
  * gdm_server_start:
1429e32
  * @disp: Pointer to a GdmDisplay structure
7708159
@@ -681,6 +721,21 @@ gdm_server_start (GdmServer *server)
1429e32
         return res;
1429e32
 }
1429e32
 
1429e32
+gboolean
1429e32
+gdm_server_start_on_active_vt (GdmServer *server)
1429e32
+{
1429e32
+        gboolean res;
1429e32
+        char *vt;
1429e32
+
1429e32
+        g_free (server->priv->command);
1429e32
+        server->priv->command = g_strdup (X_SERVER " -nr -verbose");
1429e32
+        vt = get_active_vt_as_string ();
1429e32
+        res = gdm_server_spawn (server, vt);
1429e32
+        g_free (vt);
1429e32
+
1429e32
+        return res;
1429e32
+}
1429e32
+
1429e32
 static void
1429e32
 server_died (GdmServer *server)
1429e32
 {
ec33c14
diff -up gdm-2.29.1/daemon/gdm-server.h.force-active-vt gdm-2.29.1/daemon/gdm-server.h
ec33c14
--- gdm-2.29.1/daemon/gdm-server.h.force-active-vt	2009-11-16 17:37:43.000000000 -0500
ec33c14
+++ gdm-2.29.1/daemon/gdm-server.h	2009-12-02 23:31:13.066009518 -0500
7708159
@@ -56,6 +56,7 @@ GType               gdm_server_get_type 
1429e32
 GdmServer *         gdm_server_new       (const char *display_id,
1429e32
                                           const char *auth_file);
1429e32
 gboolean            gdm_server_start     (GdmServer   *server);
1429e32
+gboolean            gdm_server_start_on_active_vt (GdmServer   *server);
1429e32
 gboolean            gdm_server_stop      (GdmServer   *server);
1429e32
 char *              gdm_server_get_display_device (GdmServer *server);
1429e32
 
ec33c14
diff -up gdm-2.29.1/daemon/gdm-simple-slave.c.force-active-vt gdm-2.29.1/daemon/gdm-simple-slave.c
ec33c14
--- gdm-2.29.1/daemon/gdm-simple-slave.c.force-active-vt	2009-11-24 02:26:07.000000000 -0500
ec33c14
+++ gdm-2.29.1/daemon/gdm-simple-slave.c	2009-12-02 23:31:13.067013552 -0500
7708159
@@ -88,6 +88,7 @@ struct GdmSimpleSlavePrivate
1429e32
 
1429e32
 enum {
1429e32
         PROP_0,
1429e32
+        FORCE_ACTIVE_VT
1429e32
 };
1429e32
 
1429e32
 static void     gdm_simple_slave_class_init     (GdmSimpleSlaveClass *klass);
ec33c14
@@ -1075,11 +1076,13 @@ gdm_simple_slave_run (GdmSimpleSlave *sl
1429e32
         char    *display_name;
1429e32
         char    *auth_file;
1429e32
         gboolean display_is_local;
1429e32
+        gboolean force_active_vt;
1429e32
 
1429e32
         g_object_get (slave,
1429e32
                       "display-is-local", &display_is_local,
1429e32
                       "display-name", &display_name,
1429e32
                       "display-x11-authority-file", &auth_file,
1429e32
+                      "force-active-vt", &force_active_vt,
1429e32
                       NULL);
1429e32
 
1429e32
         /* if this is local display start a server if one doesn't
ec33c14
@@ -1111,7 +1114,10 @@ gdm_simple_slave_run (GdmSimpleSlave *sl
1429e32
                                   G_CALLBACK (on_server_ready),
1429e32
                                   slave);
1429e32
 
1429e32
-                res = gdm_server_start (slave->priv->server);
1429e32
+                if (force_active_vt)
1429e32
+                        res = gdm_server_start_on_active_vt (slave->priv->server);
1429e32
+                else
1429e32
+                        res = gdm_server_start (slave->priv->server);
1429e32
                 if (! res) {
1429e32
                         g_warning (_("Could not start the X "
1429e32
                                      "server (your graphical environment) "
ec33c14
@@ -1259,12 +1265,14 @@ gdm_simple_slave_finalize (GObject *obje
1429e32
 }
1429e32
 
1429e32
 GdmSlave *
1429e32
-gdm_simple_slave_new (const char *id)
1429e32
+gdm_simple_slave_new (const char *id,
1429e32
+                      gboolean    force_active_vt)
1429e32
 {
1429e32
         GObject *object;
1429e32
 
1429e32
         object = g_object_new (GDM_TYPE_SIMPLE_SLAVE,
1429e32
                                "display-id", id,
1429e32
+                               "force-active-vt", force_active_vt,
1429e32
                                NULL);
1429e32
 
1429e32
         return GDM_SLAVE (object);
ec33c14
diff -up gdm-2.29.1/daemon/gdm-simple-slave.h.force-active-vt gdm-2.29.1/daemon/gdm-simple-slave.h
ec33c14
--- gdm-2.29.1/daemon/gdm-simple-slave.h.force-active-vt	2009-11-16 17:37:43.000000000 -0500
ec33c14
+++ gdm-2.29.1/daemon/gdm-simple-slave.h	2009-12-02 23:31:13.067013552 -0500
7708159
@@ -48,7 +48,8 @@ typedef struct
1429e32
 } GdmSimpleSlaveClass;
1429e32
 
1429e32
 GType               gdm_simple_slave_get_type   (void);
1429e32
-GdmSlave *          gdm_simple_slave_new        (const char       *id);
1429e32
+GdmSlave *          gdm_simple_slave_new        (const char       *id,
1429e32
+                                                 gboolean          force_active_vt);
1429e32
 
1429e32
 G_END_DECLS
1429e32
 
ec33c14
diff -up gdm-2.29.1/daemon/gdm-slave.c.force-active-vt gdm-2.29.1/daemon/gdm-slave.c
ec33c14
--- gdm-2.29.1/daemon/gdm-slave.c.force-active-vt	2009-11-16 17:37:43.000000000 -0500
ec33c14
+++ gdm-2.29.1/daemon/gdm-slave.c	2009-12-02 23:31:13.068018007 -0500
7708159
@@ -83,6 +83,7 @@ struct GdmSlavePrivate
1429e32
         char            *display_hostname;
1429e32
         gboolean         display_is_local;
1429e32
         gboolean         display_is_parented;
1429e32
+        gboolean         force_active_vt;
1429e32
         char            *display_seat_id;
1429e32
         char            *display_x11_authority_file;
1429e32
         char            *parent_display_name;
ec33c14
@@ -101,6 +102,7 @@ enum {
1429e32
         PROP_DISPLAY_NUMBER,
1429e32
         PROP_DISPLAY_HOSTNAME,
1429e32
         PROP_DISPLAY_IS_LOCAL,
1429e32
+        PROP_FORCE_ACTIVE_VT,
1429e32
         PROP_DISPLAY_SEAT_ID,
1429e32
         PROP_DISPLAY_X11_AUTHORITY_FILE
1429e32
 };
ec33c14
@@ -1332,6 +1334,13 @@ _gdm_slave_set_display_is_local (GdmSlav
1429e32
 }
1429e32
 
1429e32
 static void
1429e32
+_gdm_slave_set_force_active_vt (GdmSlave   *slave,
1429e32
+                                gboolean    force_active_vt)
1429e32
+{
1429e32
+        slave->priv->force_active_vt = force_active_vt;
1429e32
+}
1429e32
+
1429e32
+static void
1429e32
 gdm_slave_set_property (GObject      *object,
1429e32
                         guint         prop_id,
1429e32
                         const GValue *value,
ec33c14
@@ -1363,6 +1372,9 @@ gdm_slave_set_property (GObject      *ob
1429e32
         case PROP_DISPLAY_IS_LOCAL:
1429e32
                 _gdm_slave_set_display_is_local (self, g_value_get_boolean (value));
1429e32
                 break;
1429e32
+        case PROP_FORCE_ACTIVE_VT:
1429e32
+                _gdm_slave_set_force_active_vt (self, g_value_get_boolean (value));
1429e32
+                break;
1429e32
         default:
1429e32
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
1429e32
                 break;
ec33c14
@@ -1401,6 +1413,9 @@ gdm_slave_get_property (GObject    *obje
1429e32
         case PROP_DISPLAY_IS_LOCAL:
1429e32
                 g_value_set_boolean (value, self->priv->display_is_local);
1429e32
                 break;
1429e32
+        case PROP_FORCE_ACTIVE_VT:
1429e32
+                g_value_set_boolean (value, self->priv->force_active_vt);
1429e32
+                break;
1429e32
         default:
1429e32
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
1429e32
                 break;
ec33c14
@@ -1526,6 +1541,14 @@ gdm_slave_class_init (GdmSlaveClass *kla
1429e32
                                                                TRUE,
1429e32
                                                                G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
1429e32
 
1429e32
+        g_object_class_install_property (object_class,
1429e32
+                                         PROP_FORCE_ACTIVE_VT,
1429e32
+                                         g_param_spec_boolean ("force-active-vt",
1429e32
+                                                               "Force Active VT",
1429e32
+                                                               "Force display to active VT",
1429e32
+                                                               TRUE,
1429e32
+                                                               G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
1429e32
+
1429e32
         signals [STOPPED] =
1429e32
                 g_signal_new ("stopped",
1429e32
                               G_TYPE_FROM_CLASS (object_class),
ec33c14
diff -up gdm-2.29.1/daemon/gdm-static-display.c.force-active-vt gdm-2.29.1/daemon/gdm-static-display.c
ec33c14
--- gdm-2.29.1/daemon/gdm-static-display.c.force-active-vt	2009-11-16 17:37:43.000000000 -0500
ec33c14
+++ gdm-2.29.1/daemon/gdm-static-display.c	2009-12-02 23:31:13.068018007 -0500
7708159
@@ -86,10 +86,27 @@ gdm_static_display_remove_user_authoriza
1429e32
 }
1429e32
 
1429e32
 static gboolean
1429e32
+triggered_to_force_display_on_active_vt (void)
1429e32
+{
1429e32
+        gboolean should_force_display_on_active_vt;
1429e32
+
1429e32
+        should_force_display_on_active_vt = g_file_test (GDM_SPOOL_DIR "/force-display-on-active-vt",
1429e32
+                                                         G_FILE_TEST_EXISTS);
1429e32
+        g_unlink (GDM_SPOOL_DIR "/force-display-on-active-vt");
1429e32
+
1429e32
+        return should_force_display_on_active_vt;
1429e32
+}
1429e32
+
1429e32
+static gboolean
1429e32
 gdm_static_display_manage (GdmDisplay *display)
1429e32
 {
1429e32
         g_return_val_if_fail (GDM_IS_DISPLAY (display), FALSE);
1429e32
 
1429e32
+        if (triggered_to_force_display_on_active_vt ()) {
1429e32
+                g_object_set (display, "force-active-vt", TRUE, NULL);
19bf2ed
+        } else {
19bf2ed
+                g_object_set (display, "force-active-vt", FALSE, NULL);
1429e32
+        }
1429e32
         GDM_DISPLAY_CLASS (gdm_static_display_parent_class)->manage (display);
1429e32
 
1429e32
         return TRUE;
ec33c14
diff -up gdm-2.29.1/daemon/Makefile.am.force-active-vt gdm-2.29.1/daemon/Makefile.am
ec33c14
--- gdm-2.29.1/daemon/Makefile.am.force-active-vt	2009-11-16 17:37:43.000000000 -0500
ec33c14
+++ gdm-2.29.1/daemon/Makefile.am	2009-12-02 23:31:13.069017990 -0500
7708159
@@ -14,6 +14,7 @@ AM_CPPFLAGS = \
7708159
 	-DLOGDIR=\"$(logdir)\"				\
1429e32
 	-DSBINDIR=\"$(sbindir)\"			\
1429e32
 	-DGNOMELOCALEDIR=\""$(datadir)/locale"\"	\
7708159
+	-DGDM_SPOOL_DIR=\"$(GDM_SPOOL_DIR)\"  \
1429e32
 	-DGDM_XAUTH_DIR=\"$(GDM_XAUTH_DIR)\"		\
ec33c14
 	-DGDM_SCREENSHOT_DIR=\"$(GDM_SCREENSHOT_DIR)\"		\
ec33c14
 	-DGDM_CACHE_DIR=\""$(localstatedir)/cache/gdm"\"	\
ec33c14
diff -up gdm-2.29.1/daemon/simple-slave-main.c.force-active-vt gdm-2.29.1/daemon/simple-slave-main.c
ec33c14
--- gdm-2.29.1/daemon/simple-slave-main.c.force-active-vt	2009-11-16 17:37:43.000000000 -0500
ec33c14
+++ gdm-2.29.1/daemon/simple-slave-main.c	2009-12-02 23:31:54.674210044 -0500
ec33c14
@@ -178,9 +178,11 @@ main (int    argc,
ec33c14
         DBusGConnection  *connection;
1429e32
         GdmSlave         *slave;
1429e32
         static char      *display_id = NULL;
1429e32
+        static gboolean   force_active_vt = FALSE;
1429e32
         GdmSignalHandler *signal_handler;
1429e32
         static GOptionEntry entries []   = {
ec33c14
                 { "display-id", 0, 0, G_OPTION_ARG_STRING, &display_id, N_("Display ID"), N_("ID") },
1429e32
+                { "force-active-vt", 0, 0, G_OPTION_ARG_NONE, &force_active_vt, N_("Force X to start on active vt"), NULL },
1429e32
                 { NULL }
1429e32
         };
1429e32
 
ec33c14
@@ -248,7 +250,7 @@ main (int    argc,
1429e32
         gdm_signal_handler_add (signal_handler, SIGUSR1, signal_cb, NULL);
1429e32
         gdm_signal_handler_add (signal_handler, SIGUSR2, signal_cb, NULL);
1429e32
 
1429e32
-        slave = gdm_simple_slave_new (display_id);
1429e32
+        slave = gdm_simple_slave_new (display_id, force_active_vt);
1429e32
         if (slave == NULL) {
1429e32
                 goto out;
1429e32
         }
ec33c14
diff -up gdm-2.29.1/data/Makefile.am.force-active-vt gdm-2.29.1/data/Makefile.am
ec33c14
--- gdm-2.29.1/data/Makefile.am.force-active-vt	2009-11-16 19:45:22.000000000 -0500
ec33c14
+++ gdm-2.29.1/data/Makefile.am	2009-12-02 23:31:13.070023842 -0500
7708159
@@ -13,6 +13,7 @@ predir = $(gdmconfdir)/PreSession
1429e32
 postlogindir = $(gdmconfdir)/PostLogin
1429e32
 workingdir = $(GDM_WORKING_DIR)
1429e32
 xauthdir = $(GDM_XAUTH_DIR)
1429e32
+spooldir = $(GDM_SPOOL_DIR)
ec33c14
 screenshotdir = $(GDM_SCREENSHOT_DIR)
ec33c14
 cachedir = $(localstatedir)/cache/gdm
1429e32
 
ec33c14
@@ -125,6 +126,7 @@ uninstall-hook:
1429e32
 	$(DESTDIR)$(workingdir)/.gconf.mandatory \
ec33c14
 	$(DESTDIR)$(screenshotdir) \
1429e32
 	$(DESTDIR)$(xauthdir)
1429e32
+	$(DESTDIR)$(spooldir)
1429e32
 
1429e32
 install-data-hook: gdm.conf-custom Xsession Init PostSession PreSession gconf.path
1429e32
 	if test '!' -d $(DESTDIR)$(gdmconfdir); then \
ec33c14
@@ -224,6 +226,12 @@ install-data-hook: gdm.conf-custom Xsess
ec33c14
 		chown root:gdm $(DESTDIR)$(cachedir) || : ; \
1429e32
 	fi
1429e32
 
1429e32
+	if test '!' -d $(DESTDIR)$(spooldir); then \
1429e32
+		$(mkinstalldirs) $(DESTDIR)$(spooldir); \
1429e32
+		chmod 775 $(DESTDIR)$(spooldir); \
1429e32
+		chown root:gdm $(DESTDIR)$(spooldir) || : ; \
1429e32
+	fi
1429e32
+
1429e32
 	$(INSTALL_DATA) $(srcdir)/gconf.path $(DESTDIR)$(workingdir)/.gconf.path
1429e32
 	gconftool-2 --direct --config-source=xml:merged:$(DESTDIR)$(workingdir)/.gconf.mandatory --recursive-unset /
1429e32
 	gconftool-2 --direct --config-source=xml:merged:$(DESTDIR)$(workingdir)/.gconf.mandatory --load $(srcdir)/session-setup.entries