Screensharing completely broken across apps

I’m very new to these forums, and forums in general, so if this is the incorrect way to ask for help… please let me know!!!

Over the course of just today (after a reboot at some point), screensharing has completely broken on me. Not on discord nor the browser does it even prompt a selection. When I try to do so through the browser, it immediately snaps back to the tabs section

(Below is a screenshot of the in-between moment when it snaps from the Window section back to the “Brave Tab” section)

Likewise, on Discord and all subsequent clients I have installed including on the browser (Equibop, Vesktop, Discord), similar things happen. The button will seem like it clicked on the UI but won’t even open the selection screen.

I suspect it may have something to do with Wayland given that this is happening across apps, but I honestly don’t know enough to know what to do to fix this. If anyone has any ideas, help, or a place to refer me to, I would be heavily appreciative.

How are you installing the clients?

Through Bazaar, so all are Flatpaks.

I managed to figure out the solution after some weird tinkering and asking Gemini 3 to explain it to me like I was five. It was (supposedly) a race condition between the gtk and kde xdg desktop portals and screensharing was broken because it was trying to start the gtk one first? Idk.

Dec 04 17:07:39 aurora xdg-desktop-portal-kde[3116]: Failed to register with host portal QDBusError(“org.freedesktop.portal.Error.Failed”, “Could not register app ID: Connection already associated with an application ID”)

This is what I ran and what worked:

dbus-update-activation-environment --systemd --all

mkdir -p ~/.config/xdg-desktop-portal && kwrite ~/.config/xdg-desktop-portal/portals.conf

put the below block in the conf file created above

[preferred]
default=kde
org.freedesktop.impl.portal.ScreenCast=kde
org.freedesktop.impl.portal.Screenshot=kde

this restarts the portal related stuff

systemctl --user stop xdg-desktop-portal xdg-desktop-portal-gtk plasma-xdg-desktop-portal-kde
systemctl --user start plasma-xdg-desktop-portal-kde
systemctl --user start xdg-desktop-portal

i have no clue how many of these commands are necessary to complete the fix because this really is not my specialty, but i am leaving this here incase this helps anyone else with a similar issue fix or help investigate a fix for it.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.