14814
|
1 |
--- gnome-session-2.25.2/gnome-session/main.c.ori 2008-12-26 04:08:19.837029682 +0000
|
|
2 |
+++ gnome-session-2.25.2/gnome-session/main.c 2008-12-26 04:09:10.959777120 +0000
|
13408
|
3 |
@@ -30,6 +30,7 @@
|
5518
|
4 |
|
12701
|
5 |
#include <glib/gi18n.h>
|
14814
|
6 |
#include <glib.h>
|
5518
|
7 |
+#include <gdk/gdkx.h>
|
13113
|
8 |
#include <gtk/gtk.h>
|
8396
|
9 |
|
13113
|
10 |
#include <dbus/dbus.h>
|
14814
|
11 |
@@ -494,6 +495,8 @@
|
13218
|
12 |
struct sigaction sa;
|
|
13 |
GError *error;
|
|
14 |
char *display_str;
|
13113
|
15 |
+ Display *xdisp;
|
|
16 |
+ GdkDisplay *gdisp;
|
13218
|
17 |
GsmManager *manager;
|
|
18 |
GsmStore *client_store;
|
|
19 |
GsmXsmpServer *xsmp_server;
|
14814
|
20 |
@@ -557,6 +560,10 @@
|
13113
|
21 |
gsm_util_setenv ("DISPLAY", display_str);
|
|
22 |
g_free (display_str);
|
5518
|
23 |
|
13113
|
24 |
+ gdisp = gdk_display_get_default ();
|
|
25 |
+ xdisp = gdk_x11_display_get_xdisplay (gdisp);
|
|
26 |
+ XInternAtom (xdisp, "GNOME_SM_DESKTOP", FALSE);
|
5518
|
27 |
+
|
13408
|
28 |
/* Some third-party programs rely on GNOME_DESKTOP_SESSION_ID to
|
|
29 |
* detect if GNOME is running. We keep this for compatibility reasons.
|
|
30 |
*/
|