summaryrefslogtreecommitdiff
path: root/build-scripts/aur/50-systemd-user.conf
diff options
context:
space:
mode:
authorErik Reider <[email protected]>2022-11-13 15:58:24 +0100
committerGitHub <[email protected]>2022-11-13 15:58:24 +0100
commit7990b32dd28be4e42979074212a3f2e7938aadee (patch)
tree6f56e161e747f17a8ccba1d3b7b784ead9866a9c /build-scripts/aur/50-systemd-user.conf
parentc82adeb7c09cf9200e6f0ca217443c9d8bcd20bd (diff)
Add PKGBUILD stable and -git, AUR publish and Arch build GitHub Actions (#31)
* Create AUR_publish.yml * Added PKGBUILD * Switched AUR publish addon * Added arch-build action * Remove useless step in arch-build * Checkout latest tag instead of master for Arch and Fedora publish actions * Added -git PKGBUILD and added wlroots < 0.16 as dependency * Checkout master before running swayfx-git aur script * Check build for stable PKGBUILD after -git version * Removed spaces in wlroots depends version
Diffstat (limited to 'build-scripts/aur/50-systemd-user.conf')
-rw-r--r--build-scripts/aur/50-systemd-user.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/build-scripts/aur/50-systemd-user.conf b/build-scripts/aur/50-systemd-user.conf
new file mode 100644
index 00000000..d75ccdb2
--- /dev/null
+++ b/build-scripts/aur/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 XDG_CURRENT_DESKTOP
+exec hash dbus-update-activation-environment 2>/dev/null && \
+ dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP