Bug 484996 - Remote desktop session with share screen - Behavior change
Summary: Remote desktop session with share screen - Behavior change
Status: REPORTED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.0
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-03 19:54 UTC by Augusto Ícaro
Modified: 2024-10-30 22:36 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Remote Desktop + Share screen script (4.55 KB, text/x-python)
2024-04-03 19:54 UTC, Augusto Ícaro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Augusto Ícaro 2024-04-03 19:54:44 UTC
Created attachment 168109 [details]
Remote Desktop + Share screen script

SUMMARY
RemoteDesktop + ScreenCast dbus interfaces is resulting in different behavior depending on KDE version. On 5.24 when I run the script I got a screen selection dialog that I can select the screen with the input sharing permissions checkbox, but on 5.27+ only appear a dialog saying that will share screens and input, without checkbox or screen selection. So on 5.27+ it auto selected the monitor/screen that will be shared.

This behavior start to be a problem when you are using 2 or more monitors with the ScreenCast.selectSources multiple option as false, in this case, the selected auto shared monitor is the option “Full workspace” as in the regular screen share portal. And will end up with 2 or more streams showing the full workspace on each stream instead one monitor/screen on each stream.

STEPS TO REPRODUCE
1. Run the shared script (python dbus_rd_screen_cast.py)
2. If KDE 5.24 select the monitor/screen that you want to share, if KDE 5.27+ just press the share button

OBSERVED RESULT
On 5.24 when I run the script I got a screen selection dialog that I can select the screen with the input sharing permissions checkbox, but on 5.27+ only appear a dialog saying that will share screens and input, without checkbox or screen selection. So on 5.27+ it auto selected the monitor/screen that will be shared.

EXPECTED RESULT
KDE 5.27+ should keep the behavior of selecting monitor/screens as it's on gnome. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 23.10
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION

Check my scripts and how to reproduce this bug on: https://discuss.kde.org/t/remote-desktop-session-with-share-screen-behavior-change/13489/1