Bug 485850 - xdg-desktop-portal-kde virtual screens hardcoded to 1920x1080
Summary: xdg-desktop-portal-kde virtual screens hardcoded to 1920x1080
Status: CONFIRMED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.11
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-20 11:42 UTC by Paulo Dias
Modified: 2024-12-29 14:27 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paulo Dias 2024-04-20 11:42:35 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY

xdg-desktop-portal-kde as of this writing is hardcoded to only create 1920x1080 virtual screens in wayland.

https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/blob/master/src/screencast.cpp?ref_type=heads#L222

specific line:

stream = WaylandIntegration::startStreamingVirtual(output.uniqueId(), {1920, 1080}, cursorMode);

this might have been fine in the past but we are now using virtual screens more and more, in my case using META QUEST 3 oculus with immersed in a virtual desktop streaming scenario.

in gnome, the virtual screens are properly implemented:

https://gitlab.gnome.org/GNOME/mutter/-/commit/74ab2120fa1c79eed0d2fb872430c0b1c774b5a1

could you fix this implementation and allow for multiple resolution when triggering virtual screen in wayland plasma?
STEPS TO REPRODUCE
1. create virtual screens (with OBS for ex) to trigger the xdg-desktop-portal-kde interface.
2. the virtual screen will always be create as 1920x1080, doesnt matter what you try to input as resolution

OBSERVED RESULT
virtual screen always has 1920x1080

EXPECTED RESULT
virtual screen should allow sane default resolutions

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115
Qt Version: 5.15.13

ADDITIONAL INFORMATION
Comment 1 Augusto Ícaro 2024-06-10 04:15:21 UTC
Yes, that is the current behavior! As a fellow user of Immersed and Virtual Screens, I find it sad to say that gnome is ahead of the game in this feature and dbus QoL implementation for screencast.

I'm guiding another Immersed user with more time to code a proper way to change this resolution using a dbus option on the screencast Start method. He has been able to change the resolution by reading a config file, but in his test, he is having difficulty receiving the correct options map.

We are trying to figure out what the problem is with the options in our bus call. But if everything goes right, it can be a nice contribution to the KDE repository.