commit b30cfcb161effe482b1ce7001009a6f547ad2d35
parent 5680df1e74d49d74cc583f2449d44ca4b9909ad9
Author: Divan Visagie <me@divanv.com>
Date: Sat, 28 Nov 2026 22:26:32 +0100
session: start graphical-session.target and install dbus-tools, so the desktop portal works (Notes' Open Folder did nothing)
xdg-desktop-portal requires graphical-session.target, which nothing started, so every portal call failed. And the compositor exports WAYLAND_DISPLAY with dbus-update-activation-environment, which was not installed, so the portal's GTK backend started with no display. Tried by hand on the test machine: with both, all three backends (gtk, Files, wlr) start and FileChooser answers.
Diffstat:
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/linux/Containerfile b/linux/Containerfile
@@ -67,7 +67,7 @@ RUN dnf -y --setopt=install_weak_deps=False install \
dejavu-sans-fonts google-noto-color-emoji-fonts \
hicolor-icon-theme adwaita-icon-theme yaru-icon-theme \
foot xdg-user-dirs \
- xdg-desktop-portal xdg-desktop-portal-gtk xdg-desktop-portal-wlr \
+ xdg-desktop-portal xdg-desktop-portal-gtk xdg-desktop-portal-wlr dbus-tools \
shared-mime-info xdg-utils glib2 xorg-x11-server-Xwayland ffmpeg-free \
bluez power-profiles-daemon bolt fwupd thermald iio-sensor-proxy \
cups cups-browsed cups-filters hplip \
diff --git a/linux/system/usr/lib/systemd/user/default.target.wants/patina-session.target b/linux/system/usr/lib/systemd/user/default.target.wants/patina-session.target
@@ -0,0 +1 @@
+../patina-session.target
+\ No newline at end of file
diff --git a/linux/system/usr/lib/systemd/user/patina-session.target b/linux/system/usr/lib/systemd/user/patina-session.target
@@ -0,0 +1,9 @@
+[Unit]
+Description=The Patina desktop session
+Documentation=man:systemd.special(7)
+# xdg-desktop-portal requires graphical-session.target, which nothing else starts here, so without
+# this every portal call (the folder chooser, dark mode, screen sharing) fails. The target is up
+# from login; the portal itself starts on first use, after the compositor has exported the display.
+BindsTo=graphical-session.target
+Wants=graphical-session-pre.target
+After=graphical-session-pre.target