This PKGBUILD doesn't enable the systemd meson feature, which breaks user units (such as xdg-desktop-portal) if certain environment variables aren't set inside them, such as WAYLAND_DISPLAY
From 9f342f06273b45f3a49944bbbdfb1a85c81ee96b Mon Sep 17 00:00:00 2001
From: Kelvie Wong <kelvie@kelvie.ca>
Date: Tue, 2 Jan 2024 10:41:03 -0800
Subject: [PATCH] Enable systemd build option
This sets USES_SYSTEMD which does a bunch of useful things such as set
the WAYLAND_DISPLAY and a bunch of other useful variables for user
systemd units.
---
PKGBUILD | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/PKGBUILD b/PKGBUILD
index 45d0852..cec33fd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -109,7 +109,8 @@ build() {
-D b_lto=true \
-D b_pie=true \
-D default_library=shared \
- -D xwayland=enabled
+ -D xwayland=enabled \
+ -D systemd=enabled
ln -sf wlroots build/subprojects/wlroots/include/wlr
meson compile -C build
--
2.43.0
Pinned Comments
xiota commented on 2025-04-11 01:10 (UTC) (edited on 2025-04-11 01:11 (UTC) by xiota)
Here's the current depends tree to help people figure out (re)build order. Some duplicates are omitted.
alba4k commented on 2025-04-09 20:40 (UTC)
To report issues, open pull requests, or check out other hyprland-related packages, you can check out https://github.com/alba4k/hyprwm-pkgbuilds