summarylogtreecommitdiffstats
path: root/50-systemd-user.conf
diff options
context:
space:
mode:
authorRagnar Groot Koerkamp2021-06-17 14:23:14 +0200
committerRagnar Groot Koerkamp2021-06-17 14:25:06 +0200
commit105c8d7611e0ac6b0dea7bf42ea9e889f401d95e (patch)
treea0357177bf838892a4891210ba89c04a1ec7e458 /50-systemd-user.conf
downloadaur-sway-inhibit-fullscreen-git.tar.gz
Add PKGBUILD based on sway-git
Diffstat (limited to '50-systemd-user.conf')
-rw-r--r--50-systemd-user.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/50-systemd-user.conf b/50-systemd-user.conf
new file mode 100644
index 000000000000..72e5dcd98b02
--- /dev/null
+++ b/50-systemd-user.conf
@@ -0,0 +1,7 @@
+# sway does not set DISPLAY/WAYLAND_DISPLAY in the systemd user environment
+# See FS#63021
+# Adapted from xorg's 50-systemd-user.sh, which achieves a similar goal.
+
+exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
+exec hash dbus-update-activation-environment 2>/dev/null && \
+ dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK