This happens for a whole session, every time I launch these apps. For instance, here's the output of dbus-run-session nautilus in such a session:
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.gtk.vfs.Daemon' requested by ':1.0' (uid=1000 pid=8532 comm="nautilus")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Successfully activated service 'org.gtk.vfs.Daemon'
fusermount3: failed to access mountpoint /run/user/1000/gvfs: Permission denied
** Message: 10:28:45.337: Connecting to org.freedesktop.Tracker3.Miner.Files
nautilus-application-Message: 10:28:45.338: Failed to initialize display server connection: Cannot invoke method; proxy is for the well-known name “org.gnome.Mutter.ServiceChannel” without an owner, and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.freedesktop.portal.Desktop' requested by ':1.0' (uid=1000 pid=8532 comm="nautilus")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.4' (uid=1000 pid=8738 comm="/usr/lib/xdg-desktop-portal")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Successfully activated service 'org.freedesktop.impl.portal.PermissionStore'
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.freedesktop.portal.Documents' requested by ':1.4' (uid=1000 pid=8738 comm="/usr/lib/xdg-desktop-portal")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Successfully activated service 'org.freedesktop.portal.Documents'
fusermount3: failed to access mountpoint /run/user/1000/doc: Permission denied
error: fuse init failed: Can't mount path /run/user/1000/doc
(/usr/lib/xdg-desktop-portal:8738): xdg-desktop-portal-WARNING **: 10:28:45.457: Document portal fuse mount point unknown: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.6 was not provided by any .service files
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.freedesktop.impl.portal.desktop.gtk' requested by ':1.4' (uid=1000 pid=8738 comm="/usr/lib/xdg-desktop-portal")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.a11y.Bus' requested by ':1.8' (uid=1000 pid=8759 comm="/usr/lib/xdg-desktop-portal-gtk")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Successfully activated service 'org.a11y.Bus'
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.freedesktop.systemd1' requested by ':1.10' (uid=1000 pid=8773 comm="/usr/bin/dbus-broker-launch --config-file=/usr/sha")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.freedesktop.systemd1' requested by ':1.10' (uid=1000 pid=8773 comm="/usr/bin/dbus-broker-launch --config-file=/usr/sha")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Successfully activated service 'org.freedesktop.impl.portal.desktop.gtk'
** (xdg-desktop-portal-gtk:8759): WARNING **: 10:28:45.502: AT-SPI: Could not obtain desktop path or name
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.freedesktop.systemd1' requested by ':1.10' (uid=1000 pid=8773 comm="/usr/bin/dbus-broker-launch --config-file=/usr/sha")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
** (xdg-desktop-portal-gtk:8759): WARNING **: 10:28:45.504: atk-bridge: GetRegisteredEvents returned message with unknown signature
** (xdg-desktop-portal-gtk:8759): WARNING **: 10:28:45.504: atk-bridge: get_device_events_reply: unknown signature
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.freedesktop.impl.portal.desktop.hyprland' requested by ':1.4' (uid=1000 pid=8738 comm="/usr/lib/xdg-desktop-portal")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Successfully activated service 'org.freedesktop.impl.portal.desktop.hyprland'
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Successfully activated service 'org.freedesktop.portal.Desktop'
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.gtk.vfs.UDisks2VolumeMonitor' requested by ':1.0' (uid=1000 pid=8532 comm="nautilus")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Successfully activated service 'org.gtk.vfs.UDisks2VolumeMonitor'
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.gtk.vfs.GoaVolumeMonitor' requested by ':1.0' (uid=1000 pid=8532 comm="nautilus")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.gnome.OnlineAccounts' requested by ':1.15' (uid=1000 pid=8807 comm="/usr/lib/gvfs-goa-volume-monitor")
goa-daemon-Message: 10:28:45.614: goa-daemon version 3.54.5 starting
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.gnome.Identity' requested by ':1.16' (uid=1000 pid=8812 comm="/usr/lib/goa-daemon")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Successfully activated service 'org.gnome.OnlineAccounts'
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Successfully activated service 'org.gnome.Identity'
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Successfully activated service 'org.gtk.vfs.GoaVolumeMonitor'
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.gtk.vfs.GPhoto2VolumeMonitor' requested by ':1.0' (uid=1000 pid=8532 comm="nautilus")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Successfully activated service 'org.gtk.vfs.GPhoto2VolumeMonitor'
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.gtk.vfs.AfcVolumeMonitor' requested by ':1.0' (uid=1000 pid=8532 comm="nautilus")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Successfully activated service 'org.gtk.vfs.AfcVolumeMonitor'
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.gtk.vfs.MTPVolumeMonitor' requested by ':1.0' (uid=1000 pid=8532 comm="nautilus")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Successfully activated service 'org.gtk.vfs.MTPVolumeMonitor'
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='ca.desrt.dconf' requested by ':1.0' (uid=1000 pid=8532 comm="nautilus")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Successfully activated service 'ca.desrt.dconf'
(org.gnome.Nautilus:8532): Gsk-WARNING **: 10:28:45.763: The old GL renderer has been removed. Try GSK_RENDERER=help
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.freedesktop.Tracker3.Miner.Files' requested by ':1.0' (uid=1000 pid=8532 comm="nautilus")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.gnome.NautilusPreviewer' requested by ':1.0' (uid=1000 pid=8532 comm="nautilus")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Successfully activated service 'org.freedesktop.Tracker3.Miner.Files'
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.freedesktop.systemd1' requested by ':1.10' (uid=1000 pid=8773 comm="/usr/bin/dbus-broker-launch --config-file=/usr/sha")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
(org.gnome.Nautilus:8532): Gtk-CRITICAL **: 10:28:45.925: Unable to register the application: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer 'org.a11y.atspi.Registry': unit failed
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Successfully activated service 'org.gnome.NautilusPreviewer'
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.freedesktop.systemd1' requested by ':1.10' (uid=1000 pid=8773 comm="/usr/bin/dbus-broker-launch --config-file=/usr/sha")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
** (org.gnome.NautilusPreviewer:8886): WARNING **: 10:28:45.986: AT-SPI: Could not obtain desktop path or name
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.freedesktop.systemd1' requested by ':1.10' (uid=1000 pid=8773 comm="/usr/bin/dbus-broker-launch --config-file=/usr/sha")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
** (org.gnome.NautilusPreviewer:8886): WARNING **: 10:28:45.987: atk-bridge: GetRegisteredEvents returned message with unknown signature
** (org.gnome.NautilusPreviewer:8886): WARNING **: 10:28:45.987: atk-bridge: get_device_events_reply: unknown signature
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.freedesktop.systemd1' requested by ':1.10' (uid=1000 pid=8773 comm="/usr/bin/dbus-broker-launch --config-file=/usr/sha")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
(org.gnome.Nautilus:8532): Gtk-CRITICAL **: 10:28:45.993: Unable to register the application: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer 'org.a11y.atspi.Registry': unit failed
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.freedesktop.systemd1' requested by ':1.10' (uid=1000 pid=8773 comm="/usr/bin/dbus-broker-launch --config-file=/usr/sha")
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
(org.gnome.Nautilus:8532): Gtk-CRITICAL **: 10:28:46.220: Unable to register the application: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer 'org.a11y.atspi.Registry': unit failed
dbus-daemon[8530]: [session uid=1000 pid=8530 pidfd=5] Activating service name='org.freedesktop.secrets' requested by ':1.16' (uid=1000 pid=8812 comm="/usr/lib/goa-daemon")
gnome-keyring-daemon: no process capabilities, insecure memory might get used
discover_other_daemon: 1goa-daemon-Message: 10:29:12.201: /org/gnome/OnlineAccounts/Accounts/account_1754466014_1: Setting AttentionNeeded to TRUE because EnsureCredentials() failed with: Failed to retrieve credentials from the keyring (goa-error-quark, 4)
goa-daemon-Message: 10:29:37.226: /org/gnome/OnlineAccounts/Accounts/account_1756714494_0: Setting AttentionNeeded to TRUE because EnsureCredentials() failed with: Failed to retrieve credentials from the keyring (goa-error-quark, 4)
(goa-daemon:8812): goa-daemon-WARNING **: 10:29:37.227: Failed to notify of required account action: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files
The only way to avoid that is to reboot my system, and after maybe 3/4 reboots I'll get lucky enough that this bug doesn't come up. If it doesn't, it won't until the next reboot.
I'm using EndeavourOS, and this happens both in Hyprland and GNOME sessions, so although it seems similar to:
https://github.com/swaywm/sway/issues/5732 or https://github.com/swaywm/sway/issues/7600#issuecomment-1556804679
I think it's not the same issue, and the solutions proposed there do not help at all. I also tried https://utcc.utoronto.ca/%7Ecks/space/blog/linux/XdgDesktopPortalSlownessWhy with the gdm files, to no avail.
Here's also my journalctl -b for:
- a faulty session: https://0x0.st/KTNQ.txt
- an ok one: https://0x0.st/KTNY.txt
I'm really at my wits' end, so I would really appreciate any help!