[gdm] daemon: add a gdm session for gnome session to start



commit 1387d98b10795cfdad9e4f51e6fc07e5b058c99e
Author: Ray Strode <rstrode redhat com>
Date:   Fri Mar 11 19:28:45 2011 -0500

    daemon: add a gdm session for gnome session to start
    
    Previously, we just piggy backed off the gnome one,
    but it's better to have our own.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=637883

 daemon/gdm-greeter-session.c |    2 +-
 data/Makefile.am             |    3 +++
 data/gdm.session             |    6 ++++++
 3 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gdm-greeter-session.c b/daemon/gdm-greeter-session.c
index a311adc..a401508 100644
--- a/daemon/gdm-greeter-session.c
+++ b/daemon/gdm-greeter-session.c
@@ -148,7 +148,7 @@ gdm_greeter_session_new (const char *display_name,
         GObject *object;
 
         object = g_object_new (GDM_TYPE_GREETER_SESSION,
-                               "command", BINDIR "/gnome-session --autostart="DATADIR"/gdm/autostart/LoginWindow/",
+                               "command", BINDIR "/gnome-session --session gdm --autostart="DATADIR"/gdm/autostart/LoginWindow/",
                                "server-dbus-path", GDM_GREETER_SERVER_DBUS_PATH,
                                "server-dbus-interface", GDM_GREETER_SERVER_DBUS_INTERFACE,
                                "server-env-var-name", "GDM_GREETER_DBUS_ADDRESS",
diff --git a/data/Makefile.am b/data/Makefile.am
index d668354..e4244f3 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -78,6 +78,9 @@ gdm.schemas.in: $(srcdir)/gdm.schemas.in.in
 localealiasdir = $(datadir)/gdm
 localealias_DATA = locale.alias
 
+sessiondir = $(datadir)/gnome-session/sessions
+dist_session_DATA = gdm.session
+
 EXTRA_DIST =			\
 	$(schemas_in_files)	\
 	$(schemas_DATA)		\
diff --git a/data/gdm.session b/data/gdm.session
new file mode 100644
index 0000000..d343c51
--- /dev/null
+++ b/data/gdm.session
@@ -0,0 +1,6 @@
+[GNOME Session]
+Name=Display Manager
+Required=windowmanager;greeter;
+Required-windowmanager=metacity
+Required-greeter=gdm-simple-greeter
+DefaultApps=gnome-settings-daemon;polkit-gnome-authentication-agent-1;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]