For a while now (I think since my upgrade to 22.05
), starting certain programs on my machine while running sway
takes unusally long (in case of Firefox almost a minute!). And sure enough, opening one of these applications from the terminal yields me this error message:
felix@entropy ~> pavucontrol
(pavucontrol:24729): Gdk-WARNING **: 11:48:44.051: Settings portal not found: Error calling StartServiceByName for org.freedesktop.portal.Desktop: Timeout was reached
This is odd, since I enabled xdg-portal and had no problems like these in the past.
systemctl status --user xdg-desktop-portal.service
gives me:
× xdg-desktop-portal.service - Portal service
Loaded: loaded (/etc/systemd/user/xdg-desktop-portal.service; static)
Active: failed (Result: timeout) since Fri 2022-08-12 10:11:45 CEST; 1h 23min ago
Process: 5118 ExecStart=/nix/store/4m2l35l351shhzg4qak7c13n20x71daf-xdg-desktop-portal-1.14.4/libexec/xdg-desktop-portal (code=killed, signal=TERM)
Main PID: 5118 (code=killed, signal=TERM)
CPU: 30ms
Aug 12 10:10:15 entropy systemd[1727]: Starting Portal service...
Aug 12 10:10:40 entropy .xdg-desktop-po[5118]: Failed to create settings proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.kde: Timeout was rea>
Aug 12 10:10:40 entropy .xdg-desktop-po[5118]: No skeleton to export
Aug 12 10:11:05 entropy .xdg-desktop-po[5118]: Failed to create file chooser proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.kde: Timeout was>
Aug 12 10:11:05 entropy .xdg-desktop-po[5118]: No skeleton to export
Aug 12 10:11:30 entropy .xdg-desktop-po[5118]: Failed to create app chooser proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.kde: Timeout was >
Aug 12 10:11:30 entropy .xdg-desktop-po[5118]: No skeleton to export
Aug 12 10:11:45 entropy systemd[1727]: xdg-desktop-portal.service: start operation timed out. Terminating.
Aug 12 10:11:45 entropy systemd[1727]: xdg-desktop-portal.service: Failed with result 'timeout'.
Aug 12 10:11:45 entropy systemd[1727]: Failed to start Portal service.
I have Plasma enabled as a fallback x11
option in case I need to use some very petulant programs that don’t work well on Wayland. But the portal service seems to insist on having the KDE portal present as well (which should be added automatically, no?).
Is there any error in my config? How do I set up xdg-portal for both plasma and sway properly?
Thanks in advance for any hints or suggestions!