File gnome-shell-use-env-var-for-mode.patch of Package gnome-shell.1083

Index: src/main.c
===================================================================
--- src/main.c.orig	2014-02-20 02:19:33.000000000 +0800
+++ src/main.c	2014-03-10 17:16:27.233990470 +0800
@@ -388,6 +388,8 @@ main (int argc, char **argv)
   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
   textdomain (GETTEXT_PACKAGE);
 
+  session_mode = (char *) g_getenv ("GNOME_SHELL_SESSION_MODE");
+
   ctx = meta_get_option_context ();
   g_option_context_add_main_entries (ctx, gnome_shell_options, GETTEXT_PACKAGE);
   g_option_context_add_group (ctx, g_irepository_get_option_group ());
openSUSE Build Service is sponsored by