[packages/xdg-desktop-portal] - rel 2 - allow starting without graphical-session.target (only gnome and kde support this)
baggins
baggins at pld-linux.org
Sun Jun 28 22:05:04 CEST 2026
commit de5358508b6ab4e54531f500f24909855483cc07
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Jun 28 22:03:46 2026 +0200
- rel 2
- allow starting without graphical-session.target (only gnome and kde support this)
allow-no-graphical-session-target.patch | 36 +++++++++++++++++++++++++++++++++
xdg-desktop-portal.spec | 4 +++-
2 files changed, 39 insertions(+), 1 deletion(-)
---
diff --git a/xdg-desktop-portal.spec b/xdg-desktop-portal.spec
index 7bf04e3..383a0e5 100644
--- a/xdg-desktop-portal.spec
+++ b/xdg-desktop-portal.spec
@@ -2,12 +2,13 @@ Summary: Portal frontend service to Flatpak
Summary(pl.UTF-8): Usługa frontendu portalu dla Flatpaka
Name: xdg-desktop-portal
Version: 1.22.1
-Release: 1
+Release: 2
License: LGPL v2+
Group: Libraries
#Source0Download: https://github.com/flatpak/xdg-desktop-portal/releases
Source0: https://github.com/flatpak/xdg-desktop-portal/releases/download/%{version}/%{name}-%{version}.tar.xz
# Source0-md5: edfbfffe55a35920a303404b6c5d49a0
+Patch0: allow-no-graphical-session-target.patch
URL: https://github.com/flatpak/xdg-desktop-portal/
BuildRequires: bubblewrap
BuildRequires: docutils
@@ -73,6 +74,7 @@ Pliki programistyczne xdg-desktop-portal.
%prep
%setup -q
+%patch -P0 -p1
%build
%meson \
diff --git a/allow-no-graphical-session-target.patch b/allow-no-graphical-session-target.patch
new file mode 100644
index 0000000..76a822b
--- /dev/null
+++ b/allow-no-graphical-session-target.patch
@@ -0,0 +1,36 @@
+From 77e837f0034d1b9237e09244fb17fed81c9c9e45 Mon Sep 17 00:00:00 2001
+From: Alessandro Astone <alessandro.astone at canonical.com>
+Date: Sun, 29 Mar 2026 23:10:03 +0200
+Subject: [PATCH] Allow service's start even if graphical-session is not
+ reached
+
+While this is not ideal, we need to support desktop environments that do not
+bind to graphical-session.target, at least as a temporary measure.
+
+We keep the After=graphical-session.target stanza, since 'After' will only
+affect the ordering of start operations if both are queued up to start, while
+it is a no-op if graphical-session.target is not pending start.
+
+This partially reverts commit 4d284de29d1d0740c9b80b634631a8f253287680.
+
+Resolves: https://github.com/flatpak/xdg-desktop-portal/issues/1983
+Bug-Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=2481764
+Bug-Ubuntu: https://launchpad.net/bugs/2144855
+---
+ desktop-portal/xdg-desktop-portal.service.in | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/xdg-desktop-portal.service.in b/src/xdg-desktop-portal.service.in
+index 1029f5901..d7a9e8b55 100644
+--- a/src/xdg-desktop-portal.service.in
++++ b/src/xdg-desktop-portal.service.in
+@@ -4,7 +4,8 @@
+ [Unit]
+ Description=Portal service
+ PartOf=graphical-session.target
+-Requisite=graphical-session.target
++Requires=dbus.service
++After=dbus.service
+ After=graphical-session.target
+
+ [Service]
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xdg-desktop-portal.git/commitdiff/de5358508b6ab4e54531f500f24909855483cc07
More information about the pld-cvs-commit
mailing list