Bug 404568

Summary: xdg-desktop-portal-kde process uses an entire cpu core under Gnome Wayland session
Product: [Plasma] xdg-desktop-portal-kde Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Jan Grulich <jgrulich>
Status: RESOLVED NOT A BUG    
Severity: normal CC: jgrulich
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot

Description Patrick Silva 2019-02-19 19:22:08 UTC
Created attachment 118201 [details]
screenshot

STEPS TO REPRODUCE
1. start Gnome Wayland session
2. open an app installed via flatpak (I have VLC and VidCutter from flathub here)
3. check cpu usage of xdg-desktop-portal-kde process

OBSERVED RESULT
xdg-desktop-portal-kde process uses an entire cpu core, see my screenshot.

EXPECTED RESULT
normal cpu usage

SOFTWARE/OS VERSIONS
Linux/DE: Arch Linux/Gnome 3.30.2
xdg-desktop-portal-kde 5.15.1

ADDITIONAL INFORMATION
The problem does not occur under Gnome X11 sesison
Comment 1 Jan Grulich 2019-02-20 08:00:07 UTC
You shouldn't be using xdg-desktop-portal-kde under Gnome, try to install xdg-desktop-portal-gtk and restart, it will be used automatically instead.
Comment 2 Patrick Silva 2019-02-20 12:11:51 UTC
Thank you Jan.
Comment 3 Jan Grulich 2021-06-25 15:38:08 UTC
I believe this can be closed. 

1) Xdg-desktop-portal-kde shouldn't be used in GNOME.
2) We limited many portals not to run outside KDE sessions as they are tied to KWin or other KDE specific apps/services.