1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

push xorg information to the systemd --user instance

This commit is contained in:
Kay Sievers 2015-01-09 21:23:48 +01:00
parent fa607802f3
commit 1401ec2d34
2 changed files with 7 additions and 0 deletions

View File

@ -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

3
xorg/50-systemd-user.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
systemctl --user import-environment DISPLAY XAUTHORITY