gnome-session/gnome-session-2.12.0-su-session-management.patch

26 lines
882 B
Diff
Raw Normal View History

Index: gnome-session-2.19.4/gnome-session/ice.c
===================================================================
--- gnome-session-2.19.4.orig/gnome-session/ice.c
+++ gnome-session-2.19.4/gnome-session/ice.c
@@ -384,6 +384,8 @@ initialize_ice (void)
ids = IceComposeNetworkIdList (num_sockets, sockets);
g_setenv (ENVNAME, ids, TRUE);
free (ids);
+
+ putenv (g_strconcat (ICE_AUTHORITY_ENV_NAME "=", authfile, NULL));
ice_depth = 0; /* We are live */
}
Index: gnome-session-2.19.4/gnome-session/ice.h
===================================================================
--- gnome-session-2.19.4.orig/gnome-session/ice.h
+++ gnome-session-2.19.4/gnome-session/ice.h
@@ -24,6 +24,7 @@
#define MAGIC_COOKIE_LEN 16
#define ENVNAME "SESSION_MANAGER"
+#define ICE_AUTHORITY_ENV_NAME "ICEAUTHORITY"
/* List of all auth entries. */
extern GSList *auth_entries;