gnome-session r5031 - in trunk: . gnome-session



Author: vuntz
Date: Mon Sep  1 22:18:05 2008
New Revision: 5031
URL: http://svn.gnome.org/viewvc/gnome-session?rev=5031&view=rev

Log:
2008-09-02  Vincent Untz  <vuntz gnome org>

	* gnome-session/main.c: (main): export GNOME_DESKTOP_SESSION_ID. We
	need this for compatibility reasons for third-party programs.
	Fix bug #542880.


Modified:
   trunk/ChangeLog
   trunk/gnome-session/main.c

Modified: trunk/gnome-session/main.c
==============================================================================
--- trunk/gnome-session/main.c	(original)
+++ trunk/gnome-session/main.c	Mon Sep  1 22:18:05 2008
@@ -548,6 +548,12 @@
         gsm_util_setenv ("DISPLAY", display_str);
         g_free (display_str);
 
+        /* Some third-party programs rely on GNOME_DESKTOP_SESSION_ID to
+         * detect if GNOME is running. We keep this for compatibility reasons.
+         */
+        gsm_util_setenv ("GNOME_DESKTOP_SESSION_ID",
+                         failsafe ? "failsafe" : "default");
+
         client_store = gsm_store_new ();
 
 



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