Flatpaks cannot access/interact with file system or file manager

There is a strange behavior with my flatpaks in flathub. When i run KDE Drawy in Fedora 44 XFCE the app runs fine until I want to export it to image and then I see my exported image is not there. So I launched it using CLI to check the logs here is:

Call to org.freedesktop.portal.Settings.ReadAll failed QDBusError("org.freedesktop.DBus.Error.NameHasNoOwner", "Could not activate remote peer 'org.freedesktop.portal.Desktop': startup job failed")
Qt: Session management error: Could not open network socket
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"
Call for getting org.freedesktop.portal.FileChooser version failed QDBusError("org.freedesktop.DBus.Error.NameHasNoOwner", "Could not activate remote peer 'org.freedesktop.portal.Desktop': startup job failed")

Now Drawy is not the only flatpak apps that cannot interact with the file system and open the file picker but also Upscayl:

[3:1005/182745.872121:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[3:1005/182746.302812:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[3:1005/182746.302867:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[3:1005/182746.313577:ERROR:object_proxy.cc(577)] Failed to call method: org.freedesktop.DBus.StartServiceByName: object_path= /org/freedesktop/DBus: org.freedesktop.DBus.Error.ServiceUnknown: Could not activate remote peer 'org.freedesktop.portal.Desktop': startup job failed
πŸ“‚ DIRNAME /app/upscayl/resources/app.asar/export/electron
πŸšƒ App Path:  /app/upscayl/resources/app.asar
πŸš€ Checking for updates
18:27:46.366 β€Ί πŸ†™ Upscayl version: 2.15.0 FOSS
18:27:46.369 β€Ί πŸš€ UPSCAYL EXEC PATH:  /app/upscayl/resources/bin/upscayl-bin
18:27:46.370 β€Ί πŸš€ MODELS PATH:  /app/upscayl/resources/models
18:27:46.371 β€Ί πŸšƒ App Path:  /app/upscayl/resources/app.asar
MESA-INTEL: warning: Haswell Vulkan support is incomplete
libva error: /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/iHD_drv_video.so init failed
18:27:46.832 β€Ί πŸ’» System Info: {"platform":"linux","release":"7.2.8-200.fc44.x86_64","arch":"x64","model":"Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz","cpuCount":8,"gpu":{"active":true,"cudaComputeCapabilityMajor":0,"deviceId":5010,"gpuPreference":0,"vendorId":4318}}
APPIMAGE env is not defined, current application is not an AppImage
18:28:50.280 β€Ί πŸ”„ Resetting image paths
18:28:59.046 β€Ί πŸ”„ Resetting image paths

There is a problem in xfce to start the xdg-desktop-portal.service. You can temporary fix this by running

sudo systemctl --global edit xdg-desktop-portal.service

and insert the text

[Unit]
Requires=graphical-session.target

The problem is that the graphical-session.target must be started, but it is not user startable. And without raphical-session.target you can’t start xdg-desktop-portal.service either.

Okay so some apps now can pick file but Drawy still fail to export image:

Dependency failed for xdg-desktop-portal.service - Portal service.
xdg-desktop-portal.service: Job xdg-desktop-portal.service/start failed with result 'dependency'.
Dependency failed for xdg-desktop-portal.service - Portal service.
xdg-desktop-portal.service: Job xdg-desktop-portal.service/start failed with result 'dependency'.
Dependency failed for xdg-desktop-portal.service - Portal service.
xdg-desktop-portal.service: Job xdg-desktop-portal.service/start failed with result 'dependency'.
Starting xdg-desktop-portal.service - Portal service...
Document portal fuse mount point unknown: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Started xdg-desktop-portal.service - Portal service.
Failed to register file:///home/lagita/Documents/visualisasi.png: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Remote peer disconnected
● xdg-desktop-portal.service - Portal service
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static)
    Drop-In: /usr/lib/systemd/user/service.d
             └─10-timeout-abort.conf
             /etc/systemd/user/xdg-desktop-portal.service.d
             └─override.conf
     Active: active (running) since Mon 2026-10-05 19:52:39 WIB; 5min ago
 Invocation: ee98f7aace6d42d4908535e190c78bb0
   Main PID: 89200 (xdg-desktop-por)
      Tasks: 5 (limit: 9207)
     Memory: 3.5M (peak: 4.8M)
        CPU: 77ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/xdg-desktop-portal.service
             └─89200 /usr/libexec/xdg-desktop-portal

Oct 05 19:52:39 fedora systemd[1595]: Starting xdg-desktop-portal.service - Portal service...
Oct 05 19:52:39 fedora /usr/libexec/xdg-desktop-portal[89200]: Document portal fuse mount point unknown: GDBus.Error:org.freedesktop.DBus.Err>
Oct 05 19:52:39 fedora systemd[1595]: Started xdg-desktop-portal.service - Portal service.