Bug 424837

Summary: XDG Desktop Portal sometimes fails to to run
Product: [Plasma] xdg-desktop-portal-kde Reporter: Nate Graham <nate>
Component: generalAssignee: Jan Grulich <jgrulich>
Status: RESOLVED MOVED    
Severity: normal CC: aleixpol, jgrulich, nicolas.fella
Priority: NOR Keywords: regression
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nate Graham 2020-07-30 17:57:30 UTC
All KDE software from git master as of today. X11.

Clicking links in Flatpak apps no longer opens them in the browser. Instead it just does... nothing. Reproduced with Element and Discord.
Comment 1 Nate Graham 2020-07-30 18:20:16 UTC
Per Aleix's suggestion, running `/usr/lib/xdg-desktop-portal -r` fixes the issue for me. However running the custom built-from-source version fails:

$ /home/nate/kde/usr/lib64/libexec/xdg-desktop-portal-kde -r
$ echo $?
1
Comment 2 Aleix Pol 2020-07-30 18:27:25 UTC
I'd suggest renaming this issue to "XDG Desktop Portal sometimes to run start us".

Looking for errors in the logs to see what happened when we tried to get us started would be useful.
Comment 3 Nate Graham 2020-10-27 11:01:55 UTC
(Correction: the path is /usr/libexec/xdg-desktop-portal)

(In reply to Aleix Pol from comment #2)
> Looking for errors in the logs to see what happened when we tried to get us
> started would be useful.
Which log?
Comment 4 Jan Grulich 2020-10-27 11:03:57 UTC
Use QT_LOGGING_RULES='xdp*.debug=true' for xdg-desktop-portal-kde and G_MESSAGES_DEBUG=all for xdg-desktop-portal.
Comment 5 Nate Graham 2020-10-30 14:13:46 UTC
$  (master) QT_LOGGING_RULES='xdp*.debug=true' /home/nate/kde/usr/lib64/libexec/xdg-desktop-portal-kde
xdp-kde: Failed to register org.freedesktop.impl.portal.desktop.kde service
Comment 6 Nicolas Fella 2022-01-18 19:37:22 UTC
Sounds related to https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/issues/1 ?

> xdp-kde: Failed to register org.freedesktop.impl.portal.desktop.kde service

that should mean that another instance is already running
Comment 7 Nate Graham 2022-01-18 19:54:06 UTC
This is an issue with my dev setup. Conversation continues in https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/issues/1