Fedora Account System
Red Hat Associate
Red Hat Customer
When graphical-session.target is inactive, xdg-desktop-portal.service cannot be started, even manually, failing with: xdg-desktop-portal.service: Job xdg-desktop-portal.service/start failed with result 'dependency'. This breaks access to desktop features in applications that need the portal running, such as those inside Flatpaks. Reproducible: Always Steps to Reproduce: 1. Start an XFCE/Cinnamon/MATE session 2. Check status with `systemctl --user status graphical-session.target xdg-desktop-portal.service` 3. Try to start the service, or open e.g. a file chooser in an application that depends on the portal Actual Results: Both units show as inactive. The portal service cannot be started and access to files or applications through the portal is not available. Expected Results: xdg-desktop-portal.service should start successfully when requested. Additional Information: The commit below has made xdg-desktop-portal have `Requisite=graphical-session.target`, which is never reached in some environments: https://github.com/flatpak/xdg-desktop-portal/commit/4d284de29d1d0740c9b80b634631a8f253287680 This effectively breaks access to user files from inside Flatpaks in those environments. I noticed this after upgrading to F44, which packages versions 1.21.0 and above (affected by this commit), when the file chooser for Firefox Flatpak only showed the sandbox FS and could not access the host FS, except for the paths already allowed in its metadata file (like ~/Downloads). In fact, Firefox warned about being unable to start the portal when run from the terminal with this warning: WARNING: Failed to call SchemeSupported method: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer 'org.freedesktop.portal.Desktop': startup job failed This is a known issue with some workarounds in the wild like: https://github.com/NixOS/nixpkgs/blob/fb17f63ca5c1fc347de1f49974d823d465f771f7/nixos/modules/services/x11/display-managers/default.nix#L38-L60 and: https://salsa.debian.org/debian/xdg-desktop-portal/-/blob/51290686fd795daaea131c35efd3ee395d42d976/debian/patches/ubuntu/allow-no-graphical-session-target.patch For now, I have partially rolled that commit back by using the Ubuntu patched version of the service unit configuration as a full drop-in with: systemctl --user --full edit xdg-desktop-portal.service I can only confirm this issue in XFCE, but judging by upstream issue #1983, it also affects Hyprland, Cinnamon, and MATE. This will not be fixed upstream, however, as it's the result of a bugfix and working as intended. It seems the only supported way of solving this is making every one of those environments reach graphical-session.target, perhaps through a dummy target. Would it be reasonable to partially revert that commit for now, as in Ubuntu, to avoid leaving the portal service broken in the meantime?
When I try to send a photo from Shotwell (right click on a photo -> Send To...), I get: > Unable to send file <file name.JPG>. > GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not > activate remote peer 'org.freedesktop.portal.Desktop': startup job failed Both graphical-session.target and xdg-desktop-portal.service are inactive (dead). > Dependency failed for xdg-desktop-portal.service - Portal service. > xdg-desktop-portal.service: Job xdg-desktop-portal.service/start failed with result 'dependency'. Is Shotwell unable to send an e-mail due to inactive graphical-session?
Flameshot, which is a screenshot app, also breaks due to xdg-desktop-portal being inactive. > $ flameshot gui > qt.qpa.theme.gnome: dbus reply error: [ "org.freedesktop.DBus.Error.NameHasNoOwner" ] "Could not activate remote peer 'org.freedesktop.portal.Desktop': startup job failed" > qt.qpa.theme.gnome: dbus reply error: [ "org.freedesktop.DBus.Error.NameHasNoOwner" ] "Could not activate remote peer 'org.freedesktop.portal.Desktop': startup job failed" > flameshot: error: Could not locate the `org.freedesktop.portal.Desktop` service > flameshot: error: Unable to capture screen While being on an XFCE session, trying the patch provided by Ubuntu the portal service does work and active, but it still doesn't resolve it completely. Now Flameshot timed out after a while. > $ flameshot gui > flameshot: error: Screenshot portal timed out after 30 seconds > flameshot: error: Unable to capture screen > flameshot: info: Screenshot aborted. Isn't there any development from Fedora's part on this issue?
All flatpak apps I tried on my XFCE installation failed file portal requests, making some programs unusable. Claude helped me fix the issue; here is what I ended up with. Since graphical-session.target is inactive on startup, I created a systemd service that activates it at login, using a dependency since it cannot be activated manually: Created file: > ~/.config/systemd/user/graphical-session-activation.service With contents - ini: [Unit] Description=Graphical Session Activation After=dbus.service [Service] Type=oneshot ExecStart=/bin/true Wants=graphical-session.target [Install] WantedBy=default.target Then to enable it: > systemctl --user enable graphical-session-activation.service This runs at login and now everything works fine.
Jesus I typed that comment then realized it was unnecessary but I accidentally sent it anyway sorry if you got emailed by that
Confirming on Fedora 44 MATE (xdg-desktop-portal-1.22.1-1.fc44.x86_64, systemd user session). The problem is not limited to 1.21.x: 1.22.1 still ships `Requisite=graphical-session.target`. MATE leaves graphical-session.target inactive, so the portal cannot start, even by hand: xdg-desktop-portal.service: Job xdg-desktop-portal.service/start failed with result 'dependency' flatpak run --command=xdg-open <app> https://... -> Failed to call portal: ...NameHasNoOwner: Could not activate remote peer 'org.freedesktop.portal.Desktop': startup job failed Visible impact: the Plex Desktop Flatpak (tv.plex.PlexDesktop) sign-in button does nothing, because it opens the browser through OpenURI. Upstream has fixed this in main: flatpak/xdg-desktop-portal PR #2027 ("Allow service's start even if graphical-session is not reached", commit 71ad2b7, merged), tracked in issue #1983. It keeps After=graphical-session.target and drops the Requisite. Fedora needs an update with that change. Workaround that works here: copy /usr/lib/systemd/user/xdg-desktop-portal.service and xdg-desktop-portal-gtk.service to ~/.config/systemd/user/ with the Requisite= line removed, then `systemctl --user daemon-reload` and `systemctl --user start xdg-desktop-portal`. A drop-in with an empty `Requisite=` does not work, because dependency lists cannot be reset that way.
Still present on Fedora 45 with Xfce (xdg-desktop-portal-1.22.1-2.fc45). Correction to comment 5: upstream PR #2027 is not merged. As of 2026-11-09 it is open, conflicts with main, and no release contains it (latest is 1.22.1). So Fedora has nothing to pull in without a downstream patch. One more effect, outside Flatpak: Google Chrome 157 loses file uploads. Without the portal, Chrome uses its own file chooser and the chosen file never reaches the page (lost 3 of 3 times on a clean profile, received 3 of 3 with the portal started by hand). That part is a Chromium bug, fixed in Chrome 158 (https://chromium-review.googlesource.com/c/chromium/src/+/8356355). Could you please apply the PR #2027 patch in the Fedora package, as Ubuntu already does, until upstream decides?