xdg-desktop-portal-gnome increases GNOME start up time under X11
I have found a few similar issue reports such as #986 in the xdg-desktop-portal GitHub repository and #74 (closed) in this repository. All of them are about xdg-desktop-portal-gnome causing delays in DEs that are not GNOME, however my problem is quite the opposite. I can't run GNOME on Wayland yet because of glitches caused by NVIDIA, so I would like to run it on X11. While the Wayland session starts fine, the X11 starts horribly slow when xdg-desktop-portal-gnome is installed. When I uninstall the portal, the X11 session starts quickly.
$ systemctl status --user xdg-desktop-portal.service
● xdg-desktop-portal.service - Portal service
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static)
Active: active (running) since Thu 2024-01-18 14:47:53 CET; 36min ago
Main PID: 8271 (xdg-desktop-por)
Tasks: 7 (limit: 38268)
Memory: 7.7M (peak: 12.4M)
CPU: 81ms
CGroup: /user.slice/user-1040.slice/user@1040.service/session.slice/xdg-desktop-portal.service
└─8271 /usr/lib/xdg-desktop-portal
sty 18 14:46:37 cezdro systemd[7961]: Starting Portal service...
sty 18 14:47:27 cezdro xdg-desktop-por[8271]: Failed to create settings proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.gnome: Timeout was reached
sty 18 14:47:52 cezdro xdg-desktop-por[8271]: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.gtk: Timeout was reached
sty 18 14:47:52 cezdro xdg-desktop-por[8271]: Failed to create settings proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.gnome: Timeout was reached
sty 18 14:47:52 cezdro xdg-desktop-por[8271]: No skeleton to export
sty 18 14:47:53 cezdro systemd[7961]: Started Portal service.
I have the exact same problem on two machines, one running Arch Linux and the second one running Manjaro.
- GNOME version: 45.3
- xdg-desktop-portal-gnome version: 45.1
- xdg-desktop-portal version: 1.18.2
Edited by Cezary Drożak