[gdm] launch-environment: only pass on XAUTHORITY if set
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] launch-environment: only pass on XAUTHORITY if set
- Date: Fri, 20 Feb 2015 19:48:47 +0000 (UTC)
commit 5b50d76d2ddf454f297653a392b2cffdb077d795
Author: Ray Strode <rstrode redhat com>
Date: Fri Feb 20 14:47:30 2015 -0500
launch-environment: only pass on XAUTHORITY if set
It's not set in a number cases now, so trying to
send it along, leads to log spew.
https://bugzilla.gnome.org/show_bug.cgi?id=744764
daemon/gdm-launch-environment.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gdm-launch-environment.c b/daemon/gdm-launch-environment.c
index d35e125..dc73ffc 100644
--- a/daemon/gdm-launch-environment.c
+++ b/daemon/gdm-launch-environment.c
@@ -254,7 +254,8 @@ build_launch_environment (GdmLaunchEnvironment *launch_environment,
system_data_dirs));
g_free (system_data_dirs);
- g_hash_table_insert (hash, g_strdup ("XAUTHORITY"), g_strdup
(launch_environment->priv->x11_authority_file));
+ if (launch_environment->priv->x11_authority_file != NULL)
+ g_hash_table_insert (hash, g_strdup ("XAUTHORITY"), g_strdup
(launch_environment->priv->x11_authority_file));
g_hash_table_insert (hash, g_strdup ("LOGNAME"), g_strdup (launch_environment->priv->user_name));
g_hash_table_insert (hash, g_strdup ("USER"), g_strdup (launch_environment->priv->user_name));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]