summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
-rwxr-xr-xxorg/50-systemd-user.sh3
2 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index e024748a66..aa5580b822 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -84,6 +84,7 @@ sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
varlogdir=$(localstatedir)/log
systemdstatedir=$(localstatedir)/lib/systemd
catalogstatedir=$(systemdstatedir)/catalog
+xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
# Our own, non-special dirs
pkgsysconfdir=$(sysconfdir)/systemd
@@ -2474,6 +2475,9 @@ dbus1-generator-install-hook:
dbus1-generator-uninstall-hook:
rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
+dist_xinitrc_SCRIPTS = \
+ xorg/50-systemd-user.sh
+
INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
endif
diff --git a/xorg/50-systemd-user.sh b/xorg/50-systemd-user.sh
new file mode 100755
index 0000000000..f4df13b619
--- /dev/null
+++ b/xorg/50-systemd-user.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+systemctl --user import-environment DISPLAY XAUTHORITY