You are not logged in.
This started around the time we got a new dbus implementation, and I have tried going back to the old one to see if it fixed the issue but it did not.
As the title says, installing literally any XDG Desktop Portal implementation delays the launch of some apps by around 1 minute, making them time out before they launch, with a similar output:
[~]$ gnome-disks
Failed to register: Timeout was reachedIn an attempt to debug this, I came to a conclusion that, having any file exist in this directory /usr/share/xdg-desktop-portal/portals, even if the file is empty, makes the portal hang
Bellow is the output of what happens when I have any Portal implementation installed
[~]$ /usr/lib/xdg-desktop-portal -v
XDP: Looking for portals configuration in '/home/battler/.config/xdg-desktop-portal/hyprland-portals.conf'
XDP: Looking for portals configuration in '/home/battler/.config/xdg-desktop-portal/portals.conf'
XDP: Looking for portals configuration in '/etc/xdg/xdg-desktop-portal/hyprland-portals.conf'
XDP: Looking for portals configuration in '/etc/xdg/xdg-desktop-portal/portals.conf'
XDP: Looking for portals configuration in '/etc/xdg-desktop-portal/hyprland-portals.conf'
XDP: Looking for portals configuration in '/etc/xdg-desktop-portal/portals.conf'
XDP: Looking for portals configuration in '/home/battler/.local/share/xdg-desktop-portal/hyprland-portals.conf'
XDP: Looking for portals configuration in '/home/battler/.local/share/xdg-desktop-portal/portals.conf'
XDP: Looking for portals configuration in '/usr/local/share/xdg-desktop-portal/hyprland-portals.conf'
XDP: Looking for portals configuration in '/usr/local/share/xdg-desktop-portal/portals.conf'
XDP: Looking for portals configuration in '/usr/share/xdg-desktop-portal/hyprland-portals.conf'
XDP: Preferred portals for interface 'default': hyprland, gtk
XDP: Using portal configuration file '/usr/share/xdg-desktop-portal/hyprland-portals.conf' for desktop 'hyprland'
XDP: load portals from /usr/share/xdg-desktop-portal/portalsThis is all it prints and just hangs on that last line. This is independent if the session is Xorg or Wayland.
And now bellow is the output when there is absolutely no portal implementation installed and the mentioned folder does not even exist
[~]$ /usr/lib/xdg-desktop-portal -v
XDP: Looking for portals configuration in '/home/battler/.config/xdg-desktop-portal/hyprland-portals.conf'
XDP: Looking for portals configuration in '/home/battler/.config/xdg-desktop-portal/portals.conf'
XDP: Looking for portals configuration in '/etc/xdg/xdg-desktop-portal/hyprland-portals.conf'
XDP: Looking for portals configuration in '/etc/xdg/xdg-desktop-portal/portals.conf'
XDP: Looking for portals configuration in '/etc/xdg-desktop-portal/hyprland-portals.conf'
XDP: Looking for portals configuration in '/etc/xdg-desktop-portal/portals.conf'
XDP: Looking for portals configuration in '/home/battler/.local/share/xdg-desktop-portal/hyprland-portals.conf'
XDP: Looking for portals configuration in '/home/battler/.local/share/xdg-desktop-portal/portals.conf'
XDP: Looking for portals configuration in '/usr/local/share/xdg-desktop-portal/hyprland-portals.conf'
XDP: Looking for portals configuration in '/usr/local/share/xdg-desktop-portal/portals.conf'
XDP: Looking for portals configuration in '/usr/share/xdg-desktop-portal/hyprland-portals.conf'
XDP: Looking for portals configuration in '/usr/share/xdg-desktop-portal/portals.conf'
XDP: Looking for portals configuration in '/usr/share/xdg-desktop-portal/hyprland-portals.conf'
XDP: Looking for portals configuration in '/usr/share/xdg-desktop-portal/portals.conf'
XDP: load portals from /usr/share/xdg-desktop-portal/portals
XDP: providing portal org.freedesktop.portal.MemoryMonitor
XDP: providing portal org.freedesktop.portal.PowerProfileMonitor
XDP: providing portal org.freedesktop.portal.NetworkMonitor
XDP: providing portal org.freedesktop.portal.ProxyResolver
XDP: providing portal org.freedesktop.portal.Trash
XDP: providing portal org.freedesktop.portal.GameMode
XDP: providing portal org.freedesktop.portal.Realtime
(/usr/lib/xdg-desktop-portal:25874): xdg-desktop-portal-WARNING **: 03:18:13.062: No skeleton to export
XDP: org.freedesktop.portal.Desktop acquired[~]$ ls /usr/share/xdg-desktop-portal/portals
ls: cannot access '/usr/share/xdg-desktop-portal/portals': No such file or directoryIn this state, app launch is no longer delayed, but I also don't have access to screenshare on wayland. Having the main xdg-desktop-portal itself does not cause issues, just any implementation.
This is as far as I was able to debug this issue.
Any help is greatly appreciated.
Last edited by Kyuunex (2024-02-22 13:59:49)
Offline
Have you checked the system journal for related dbus errors?
Online
[~]$ journalctl --no-pager -b 0 | grep -i -E "dbus|d-bus"
Feb 21 18:54:40 archlinux systemd[1]: Listening on D-Bus System Message Bus Socket.
Feb 21 18:54:40 archlinux systemd[1]: Starting D-Bus System Message Bus...
Feb 21 18:54:40 archlinux systemd[1]: Started D-Bus System Message Bus.
Feb 21 18:54:40 archlinux dbus-broker-launch[1592]: Ready
Feb 21 18:54:40 archlinux bluetoothd[1597]: profiles/audio/micp.c:micp_init() D-Bus experimental not enabled
Feb 21 18:54:40 archlinux NetworkManager[1594]: <info> [1708527280.4252] bus-manager: acquired D-Bus service "org.freedesktop.NetworkManager"
Feb 21 18:54:40 archlinux dnsmasq[1786]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset nftset auth cryptohash DNSSEC loop-detect inotify dumpfile
Feb 21 18:54:42 archlinux dbus-broker-launch[1592]: Activation request for 'org.freedesktop.home1' failed: The systemd unit 'dbus-org.freedesktop.home1.service' could not be found.
Feb 21 18:54:43 archlinux systemd[1807]: Starting D-Bus User Message Bus Socket...
Feb 21 18:54:43 archlinux systemd[1807]: Listening on D-Bus User Message Bus Socket.
Feb 21 18:54:43 archlinux systemd[1807]: Starting D-Bus User Message Bus...
Feb 21 18:54:43 archlinux dbus-broker-launch[1868]: Service file '/usr/share/dbus-1/services/org.kde.dolphin.FileManager1.service' is not named after the D-Bus name 'org.freedesktop.FileManager1'.
Feb 21 18:54:43 archlinux dbus-broker-launch[1868]: Service file '/usr/share/dbus-1/services/org.knopwob.dunst.service' is not named after the D-Bus name 'org.freedesktop.Notifications'.
Feb 21 18:54:43 archlinux dbus-broker-launch[1868]: Service file '/usr/share/dbus-1/services/org.xfce.Tumbler.Cache1.service' is not named after the D-Bus name 'org.freedesktop.thumbnails.Cache1'.
Feb 21 18:54:43 archlinux dbus-broker-launch[1868]: Service file '/usr/share/dbus-1/services/org.xfce.Tumbler.Manager1.service' is not named after the D-Bus name 'org.freedesktop.thumbnails.Manager1'.
Feb 21 18:54:43 archlinux dbus-broker-launch[1868]: Service file '/usr/share/dbus-1/services/org.xfce.Tumbler.Thumbnailer1.service' is not named after the D-Bus name 'org.freedesktop.thumbnails.Thumbnailer1'.
Feb 21 18:54:43 archlinux dbus-broker-launch[1868]: Policy to allow eavesdropping in /usr/share/dbus-1/session.conf +31: Eavesdropping is deprecated and ignored
Feb 21 18:54:43 archlinux dbus-broker-launch[1868]: Policy to allow eavesdropping in /usr/share/dbus-1/session.conf +33: Eavesdropping is deprecated and ignored
Feb 21 18:54:43 archlinux systemd[1807]: Started D-Bus User Message Bus.
Feb 21 18:54:43 archlinux dbus-broker-launch[1868]: Ready
Feb 21 18:54:44 archlinux dbus-broker-launch[2002]: Ready
Feb 21 18:54:44 archlinux systemd[1807]: Created slice Slice /app/dbus-:1.15-org.a11y.atspi.Registry.
Feb 21 18:54:44 archlinux systemd[1807]: Started dbus-:1.15-org.a11y.atspi.Registry@0.service.
Feb 21 18:54:46 archlinux dbus-broker-launch[1592]: Activation request for 'org.freedesktop.resolve1' failed: The systemd unit 'dbus-org.freedesktop.resolve1.service' could not be found.
Feb 21 18:55:13 archlinux systemd[1807]: Created slice Slice /app/dbus-:1.2-org.kde.kwalletd5.
Feb 21 18:55:13 archlinux systemd[1807]: Started dbus-:1.2-org.kde.kwalletd5@0.service.
Feb 21 18:57:37 archlinux systemd[1807]: Created slice Slice /app/dbus-:1.2-org.kde.kded5.
Feb 21 18:57:37 archlinux systemd[1807]: Started dbus-:1.2-org.kde.kded5@0.service.not too good at understanding these but hopefully im filtering the logs correctly
i found none of these helpful
Offline
Don't filter at all, view the journal in context - the stuff around the poral access should be relevant.
In doubt please post your complete system journal for the boot:
sudo journalctl -b | curl -F 'file=@-' 0x0.stOnline
Offline
The boot is only 60s and doesn't seem to hold any trace of a portal invocation at all?
You need to have triggered the problem for it to show up in the journal.
Online
I assumed it triggered it because I have waybar installed and at startup, and it does not launch because of this issue (not even a delay)
Here's the rest of the journal continuing from the previous paste where I tried triggering this issue manually
Offline
Feb 21 19:29:00 archlinux wireplumber[7389]: <WpPortalPermissionStorePlugin:0x5cdee7c053a0> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
Feb 21 19:29:00 archlinux wireplumber[7389]: <WpPortalPermissionStorePlugin:0x5cdee7c053a0> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
Feb 21 19:29:00 archlinux pipewire-pulse[7390]: mod.protocol-pulse: client 0x566f46dc6760 [Chromium]: ERROR command:-1 (invalid) tag:2 error:25 (Input/output error)
Feb 21 19:29:00 archlinux pipewire-pulse[7390]: mod.protocol-pulse: client 0x566f46dc6760 [Chromium]: ERROR command:-1 (invalid) tag:2 error:25 (Input/output error)
Feb 21 19:29:15 archlinux systemd[1813]: xdg-desktop-portal.service: start operation timed out. Terminating.
Feb 21 19:29:15 archlinux systemd[1813]: xdg-desktop-portal.service: Failed with result 'timeout'.
Feb 21 19:29:15 archlinux systemd[1813]: Failed to start Portal service.You currently don't have a portal implementation installed?
pacman -Qs portalOnline
[~]$ pacman -Qs portal
local/xdg-desktop-portal 1.18.2-1
Desktop integration portals for sandboxed
apps
local/xdg-desktop-portal-gtk 1.15.1-1
A backend implementation for
xdg-desktop-portal using GTKOffline
So why does xdg-desktop-portal-gtk not show up in the logs?
pacman -Qikk xdg-desktop-portal xdg-desktop-portal-gtkDo not try to work around the timeout by removing files or directories, have the system fully run into the timeout.
Online
[~]$ sudo pacman -Qikk xdg-desktop-portal xdg-desktop-portal-gtk
[sudo] password for battler:
Name : xdg-desktop-portal
Version : 1.18.2-1
Description : Desktop integration portals for sandboxed apps
Architecture : x86_64
URL : https://flatpak.github.io/xdg-desktop-portal/
Licenses : LGPL
Groups : None
Provides : None
Depends On : fuse3 gdk-pixbuf2 geoclue glib2 pipewire rtkit systemd
Optional Deps : xdg-desktop-portal-impl: Portal backends [installed]
Required By : xdg-desktop-portal-gtk
Optional For : firefox flameshot signal-desktop
Conflicts With : None
Replaces : None
Installed Size : 2.28 MiB
Packager : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date : Thu 23 Nov 2023 03:02:28 AM +04
Install Date : Wed 21 Feb 2024 02:57:41 PM +04
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
xdg-desktop-portal: 179 total files, 0 altered files
Name : xdg-desktop-portal-gtk
Version : 1.15.1-1
Description : A backend implementation for xdg-desktop-portal using GTK
Architecture : x86_64
URL : https://github.com/flatpak/xdg-desktop-portal-gtk
Licenses : LGPL
Groups : None
Provides : xdg-desktop-portal-impl
Depends On : gsettings-desktop-schemas gtk3 xdg-desktop-portal
Optional Deps : evince: Print preview [installed]
Required By : None
Optional For : xdg-desktop-portal
Conflicts With : None
Replaces : None
Installed Size : 461.23 KiB
Packager : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date : Sun 22 Oct 2023 02:13:05 AM +04
Install Date : Wed 21 Feb 2024 06:45:45 PM +04
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
xdg-desktop-portal-gtk: 107 total files, 0 altered filesI launched gnome disks again, waiting for the timeout fully, here is the output, it took longer than it did in the original post because at that time, I had a different (hyprland) portal installed. But this time I am testing with the GTK portal. There is a timeout between each error message bellow.
[~]$ gnome-disks
(gnome-disks:27069): Handy-CRITICAL **: 20:19:05.697: Couldn't read the color-scheme setting: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer: startup job failed.
(gnome-disks:27069): Handy-CRITICAL **: 20:20:35.946: Couldn't read the color-scheme setting: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer: startup job failed.
(gnome-disks:27069): Handy-CRITICAL **: 20:22:06.197: Couldn't read the contrast setting: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer: startup job failed.
(gnome-disks:27069): Handy-CRITICAL **: 20:23:36.447: Couldn't read the high-contrast setting: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer: startup job failed.
(gnome-disks:27069): Handy-WARNING **: 20:23:36.447: Using GtkSettings:gtk-application-prefer-dark-theme together with HdyStyleManager is unsupported. Please use HdyStyleManager:color-scheme instead.As for the journal, this continues from the previous paste
Offline
In terms of modifying directories or files, I did it once to /usr/share/xdg-desktop-portal/portals to debug this exact issue and at the end, I put it back to how it should be, the permissions should be how they normally should be.
[~]$ ls -lah /usr/share/xdg-desktop-portal/portals
total 12K
drwxr-xr-x 2 root root 4.0K Feb 21 18:45 .
drwxr-xr-x 3 root root 4.0K Feb 21 18:45 ..
-rw-r--r-- 1 root root 495 Oct 22 02:13 gtk.portal
[~]$ ls -lah /usr/share/xdg-desktop-portal/portals/*
-rw-r--r-- 1 root root 495 Oct 22 02:13 /usr/share/xdg-desktop-portal/portals/gtk.portal
[~]$ ls -lah /usr/share/xdg-desktop-portal/
total 24K
drwxr-xr-x 3 root root 4.0K Feb 21 18:45 .
drwxr-xr-x 322 root root 12K Feb 21 18:45 ..
-rw-r--r-- 1 root root 24 Oct 22 02:13 gtk-portals.conf
drwxr-xr-x 2 root root 4.0K Feb 21 18:45 portalsAdditionally, uninstalling every portal implementation makes pacman automatically delete this folder because it's empty and recreate it when installing. Permissions should be normal.
Last edited by Kyuunex (2024-02-21 16:35:23)
Offline
This has probably nothing to do w/ portal but you hyprland session, resp. the session dbus
echo $DBUS_SESSION_BUS_ADDRESS
loginctl session-status
systemctl --user status xdg-desktop-portal-gtkHow exactly do you start hyprland?
Online
[~]$ echo $DBUS_SESSION_BUS_ADDRESS
unix:path=/run/user/1000/bus
[~]$ loginctl session-status --no-pager
1 - battler (1000)
Since: Wed 2024-02-21 19:18:34 +04; 1h 22min ago
State: active
Leader: 1677 (ly-dm)
Seat: seat0; vc2
TTY: tty2
Remote: no
Service: ly
Type: wayland
Class: user
Desktop: hyprland
Idle: no
Unit: session-1.scope
├─ 1677 /usr/bin/ly-dm
├─ 1825 Hyprland
├─ 1922 /usr/lib/polkit-kde-authentication-agent-1
├─ 1924 nm-applet --indicator
├─ 1926 hyprpaper
├─ 1928 hypridle
├─ 2073 "/usr/lib/chromium/chromium --password-store=kwallet5 --enable-features=VaapiVideoDecodeLinuxGL"
├─ 2076 "/usr/lib/chromium/chromium --type=zygote --no-zygote-sandbox --change-stack-guard-on-fork=enable"
├─ 2077 "/usr/lib/chromium/chromium --type=zygote --change-stack-guard-on-fork=enable"
├─ 2079 "/usr/lib/chromium/chromium --type=zygote --change-stack-guard-on-fork=enable"
├─ 2091 Xwayland :0 -rootless -core -terminate 10 -listenfd 28 -listenfd 29 -displayfd 83 -wm 80
├─ 2124 "/usr/lib/chromium/chromium --type=gpu-process --change-stack-guard-on-fork=enable --gpu-preferences=WAAAAAAAAAAgAAAEAAAAAAAAAAAAAAAAAABgAAAAAAA…
├─ 2128 "/usr/lib/chromium/chromium --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --change-sta…
├─ 2206 "/usr/lib/chromium/chromium --type=utility --utility-sub-type=storage.mojom.StorageService --lang=en-US --service-sandbox-type=utility --change-…
├─ 2229 "/usr/lib/chromium/chromium --type=renderer --change-stack-guard-on-fork=enable --first-renderer-process --lang=en-US --num-raster-threads=4 --e…
├─ 2318 "/usr/lib/chromium/chromium --type=renderer --extension-process --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads=4 --enable…
├─ 2350 "/usr/lib/chromium/chromium --type=renderer --extension-process --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads=4 --enable…
├─ 2362 "/usr/lib/chromium/chromium --type=renderer --extension-process --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads=4 --enable…
├─ 2372 "/usr/lib/chromium/chromium --type=renderer --extension-process --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads=4 --enable…
├─ 2390 "/usr/lib/chromium/chromium --type=renderer --extension-process --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads=4 --enable…
├─ 7381 "/usr/lib/chromium/chromium --type=utility --utility-sub-type=audio.mojom.AudioService --lang=en-US --service-sandbox-type=none --change-stack-g…
├─29201 "/usr/lib/chromium/chromium --type=renderer --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads=4 --enable-main-frame-before-a…
├─29297 konsole
├─29347 /bin/bash
└─36751 loginctl session-status --no-pager
Feb 21 20:14:28 archlinux sudo[26784]: pam_unix(sudo:session): session closed for user root
Feb 21 20:14:28 archlinux sudo[26813]: battler : TTY=pts/0 ; PWD=/home/battler ; USER=root ; COMMAND=/sbin/pacman --database --asexplicit -- ironbar-git
Feb 21 20:14:28 archlinux sudo[26813]: pam_unix(sudo:session): session opened for user root(uid=0) by battler(uid=1000)
Feb 21 20:14:28 archlinux sudo[26813]: pam_unix(sudo:session): session closed for user root
Feb 21 20:16:12 archlinux sudo[27015]: battler : TTY=pts/2 ; PWD=/home/battler ; USER=root ; COMMAND=/sbin/pacman -Qikk xdg-desktop-portal xdg-desktop-portal-gtk
Feb 21 20:16:12 archlinux sudo[27015]: pam_unix(sudo:session): session opened for user root(uid=0) by battler(uid=1000)
Feb 21 20:16:12 archlinux sudo[27015]: pam_unix(sudo:session): session closed for user root
Feb 21 20:23:51 archlinux sudo[27429]: battler : TTY=pts/3 ; PWD=/home/battler ; USER=root ; COMMAND=/sbin/journalctl -b --no-pager
Feb 21 20:23:51 archlinux sudo[27429]: pam_unix(sudo:session): session opened for user root(uid=0) by battler(uid=1000)
Feb 21 20:23:52 archlinux sudo[27429]: pam_unix(sudo:session): session closed for user root
[~]$ systemctl --user status xdg-desktop-portal-gtk
○ xdg-desktop-portal-gtk.service - Portal service (GTK/GNOME implementation)
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-gtk.service; static)
Active: inactive (dead)I start it with ly. Additionally, this issue is also present in i3-wm in the exact same way, even if i3-wm is started with xinitrc (my config)
Offline
ly is systematically broken, even using startx after using ly is unreliable, https://github.com/fairyglade/ly/issues … +is%3Aopen
Disable ly, boot the multi-user.target, startx, test again, post an updated journal.
Online
also
[~]$ echo $DBUS_SESSION_BUS_ADDRESS
unix:path=/run/user/1000/bus
[~]$ loginctl session-status --no-pager
1 - battler (1000)
Since: Wed 2024-02-21 21:28:55 +04; 12min ago
State: active
Leader: 1677 (login)
Seat: seat0; vc1
TTY: tty1
Remote: no
Service: login
Type: tty
Class: user
Idle: no
Unit: session-1.scope
├─1677 "login -- battler"
├─1810 -bash
├─1819 /bin/sh /usr/bin/startx
├─1834 xinit /home/battler/.xinitrc -- /etc/X11/xinit/xserverrc :0 vt1 -keeptty -auth /tmp/serverauth.yaLzViDTUF
├─1835 /usr/lib/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.yaLzViDTUF
├─1848 /bin/sh /home/battler/.local/bin/i3
├─1853 /usr/bin/i3
├─1857 xss-lock --transfer-sleep-lock -- i3lock -c 000000 --nofork
├─1858 nm-applet
├─1859 /usr/lib/kdeconnectd
├─1860 kdeconnect-indicator
├─1861 /usr/lib/polkit-kde-authentication-agent-1
├─1862 snixembed
├─1863 i3bar --bar_id=bar-0 --socket=/run/user/1000/i3/ipc-socket.1853
├─1870 i3status
├─2028 konsole
├─2041 /bin/bash
└─2382 loginctl session-status --no-pager
Feb 21 21:28:55 archlinux systemd[1]: Started Session 1 of User battler.
Feb 21 21:28:55 archlinux login[1677]: LOGIN ON tty1 BY battler
Feb 21 21:39:43 archlinux sudo[2160]: battler : TTY=pts/0 ; PWD=/home/battler ; USER=root ; COMMAND=/usr/bin/journalctl -b --no-pager
Feb 21 21:39:43 archlinux sudo[2160]: pam_unix(sudo:session): session opened for user root(uid=0) by battler(uid=1000)
Feb 21 21:39:44 archlinux sudo[2160]: pam_unix(sudo:session): session closed for user root
[~]$ systemctl --user status xdg-desktop-portal-gtk
○ xdg-desktop-portal-gtk.service - Portal service (GTK/GNOME implementation)
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-gtk.service; static)
Active: inactive (dead)Offline
Since you're running konsole and kdeconnect there, does https://archlinux.org/packages/extra/x8 … ortal-kde/ work?
What happens if you run
qdbus org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Settings.Read org.freedesktop.appearance color-schemeSanity check, do you need xdg-desktop-portal at all?
pacman -Rs xdg-desktop-portalOnline
It waits some time and prints a response
[~]$ qdbus org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Settings.Read org.freedesktop.appearance color-scheme
Cannot find 'org.freedesktop.portal.Settings.Read' in object /org/freedesktop/portal/desktop at org.freedesktop.portal.Desktop[~]$ sudo pacman -Rs xdg-desktop-portal
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing xdg-desktop-portal breaks dependency 'xdg-desktop-portal' required by xdg-desktop-portal-gtk
:: removing xdg-desktop-portal breaks dependency 'xdg-desktop-portal' required by xdg-desktop-portal-kdeI need the portals if I want to run hyprland, sway or plasma 6 wayland session and be able to screencast.
I am also very interested in what broke this.
Last edited by Kyuunex (2024-02-21 21:55:43)
Offline
Can you
qdbus org.freedesktop.impl.portal.desktop.gtk ?
For some reason xdg-desktop-portal does not even seem to try to launch an implementation.
Sanity check
printenvOnline
[~]$ printenv
SHELL=/bin/bash
WINDOWID=98566151
COLORTERM=truecolor
GTK_THEME=Arc-Dark-solid
LANGUAGE=
I3SOCK=/run/user/1000/i3/ipc-socket.1853
USE_CCACHE=1
CREDENTIALS_DIRECTORY=/run/credentials/getty@tty1.service
GRADLE_HOME=/usr/share/java/gradle
SHELL_SESSION_ID=f47cd3bb33aa4f9f8a74b0c2570d1858
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
XCURSOR_SIZE=24
EDITOR=nano
GTK_MODULES=canberra-gtk-module
XDG_SEAT=seat0
PWD=/home/battler
LOGNAME=battler
QT_QPA_PLATFORMTHEME=qt5ct
XDG_SESSION_TYPE=tty
SYSTEMD_EXEC_PID=1677
XAUTHORITY=/home/battler/.Xauthority
TERMINAL=konsole
WINDOWPATH=1
MOTD_SHOWN=pam
HOME=/home/battler
LANG=en_US.UTF-8
XDG_CURRENT_DESKTOP=i3
KONSOLE_DBUS_SERVICE=:1.630
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/system.slice/system-getty.slice/getty@tty1.service/memory.pressure
KONSOLE_DBUS_SESSION=/Sessions/1
PROFILEHOME=
INVOCATION_ID=cf404a735bad4ea8a64f7fabcfe77318
KONSOLE_VERSION=230805
PROXY=socks5://127.0.0.1:25344/
ROC_ENABLE_PRE_VEGA=1
XDG_SESSION_CLASS=user
TERM=xterm-256color
USER=battler
SDL_AUDIODRIVER=pipewire
SDL_VIDEODRIVER=wayland,x11
SUDO_EDITOR=nano
COLORFGBG=15;0
VISUAL=kate
DISPLAY=:0
SHLVL=4
PFXS=/home/battler/.local/share/wineprefixes
XDG_VTNR=1
XDG_SESSION_ID=1
XDG_RUNTIME_DIR=/run/user/1000
MKLROOT=/opt/intel/oneapi/mkl/latest
DEBUGINFOD_URLS=https://debuginfod.archlinux.org
LC_TIME=en_DK.UTF-8
GTK3_MODULES=xapp-gtk3-module
PATH=/usr/lib/ccache/bin/:/home/battler/.local/bin:/usr/lib/ccache/bin/:/home/battler/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin:/home/battler/.local/share/JetBrains/Toolbox/scripts
XDG_SCREENSHOTS_DIR=/home/battler/Pictures/Screenshots/
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
MAIL=/var/spool/mail/battler
KONSOLE_DBUS_WINDOW=/Windows/1
_=/usr/bin/printenv
[~]$ Offline
Looks unsuspicious ![]()
Can you
qdbus org.freedesktop.impl.portal.desktop.gtk?
Online
[~]$ qdbus org.freedesktop.impl.portal.desktop.gtk
/
/org
/org/freedesktop
/org/freedesktop/portal
/org/freedesktop/portal/desktopI forgot
Offline
So that works (and started the implementation)
Can you now
qdbus org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Settings.Read org.freedesktop.appearance color-schemeOnline
[~]$ qdbus org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Settings.Read org.freedesktop.appearance color-scheme
Cannot find 'org.freedesktop.portal.Settings.Read' in object /org/freedesktop/portal/desktop at org.freedesktop.portal.Desktop
[~]$ takes a while for it to print something
Offline
I suspect because it fails to start/connect to an implementation - for unknown reasons ![]()
Same if you explcitly run "/usr/lib/xdg-desktop-portal -v"?
qdbus | grep portalProbably only shows the gtk implementation?
/usr/share/xdg-desktop-portal/portals/gtk.portal has "UseIn=gnome", what if you remove that?
Online