X Tutup
Skip to content

Commit 1401ec2

Browse files
committed
push xorg information to the systemd --user instance
1 parent fa60780 commit 1401ec2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Makefile.am

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
8484
varlogdir=$(localstatedir)/log
8585
systemdstatedir=$(localstatedir)/lib/systemd
8686
catalogstatedir=$(systemdstatedir)/catalog
87+
xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
8788

8889
# Our own, non-special dirs
8990
pkgsysconfdir=$(sysconfdir)/systemd
@@ -2474,6 +2475,9 @@ dbus1-generator-install-hook:
24742475
dbus1-generator-uninstall-hook:
24752476
rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
24762477

2478+
dist_xinitrc_SCRIPTS = \
2479+
xorg/50-systemd-user.sh
2480+
24772481
INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
24782482
UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
24792483
endif

xorg/50-systemd-user.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
systemctl --user import-environment DISPLAY XAUTHORITY

0 commit comments

Comments
 (0)
X Tutup