[PATCH 1/2] Define two env variables removing useless warnings

Vratislav Podzimek vpodzime at redhat.com
Mon Mar 24 09:54:13 UTC 2014


Tools and libraries complain about XDG_RUNTIME_DIR not being defined. Defining
GDK_BACKEND removes the "Unable to init server" when we try to run GUI exception
handling in text mode.

Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 data/systemd/anaconda-direct.service | 2 +-
 data/systemd/anaconda.service        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/data/systemd/anaconda-direct.service b/data/systemd/anaconda-direct.service
index 9bf172a..64deda6 100644
--- a/data/systemd/anaconda-direct.service
+++ b/data/systemd/anaconda-direct.service
@@ -7,7 +7,7 @@ Requires=anaconda.service
 ConditionPathIsDirectory=|/sys/hypervisor/s390
 
 [Service]
-Environment=HOME=/root MALLOC_CHECK_=2 MALLOC_PERTURB_=204 PATH=/usr/bin:/bin:/sbin:/usr
+Environment=HOME=/root MALLOC_CHECK_=2 MALLOC_PERTURB_=204 PATH=/usr/bin:/bin:/sbin:/usr GDK_BACKEND=x11 XDG_RUNTIME_DIR=/tmp
 Type=oneshot
 WorkingDirectory=/root
 ExecStart=/usr/sbin/anaconda
diff --git a/data/systemd/anaconda.service b/data/systemd/anaconda.service
index a70528b..cbd6b41 100644
--- a/data/systemd/anaconda.service
+++ b/data/systemd/anaconda.service
@@ -5,6 +5,6 @@ Wants=anaconda-noshell.service
 
 [Service]
 Type=forking
-Environment=HOME=/root MALLOC_CHECK_=2 MALLOC_PERTURB_=204 PATH=/usr/bin:/bin:/sbin:/usr/sbin:/mnt/sysimage/bin:/mnt/sysimage/usr/bin:/mnt/sysimage/usr/sbin:/mnt/sysimage/sbin LANG=en_US.UTF-8
+Environment=HOME=/root MALLOC_CHECK_=2 MALLOC_PERTURB_=204 PATH=/usr/bin:/bin:/sbin:/usr/sbin:/mnt/sysimage/bin:/mnt/sysimage/usr/bin:/mnt/sysimage/usr/sbin:/mnt/sysimage/sbin LANG=en_US.UTF-8 GDK_BACKEND=x11 XDG_RUNTIME_DIR=/tmp
 WorkingDirectory=/root
 ExecStart=/usr/bin/tmux -u -f /usr/share/anaconda/tmux.conf start
-- 
1.8.5.3



More information about the anaconda-patches mailing list