When connecting remotely to KDE with active wayland session (using for example RustDesk or other tools) the dialog for selecting screen(s) to share pops up (screenshot taken from Reconfig wayland screen sharing with rustdesk):
The problem is this dialog pops up on remote host so physical presence is needed to make selection and dismiss the dialog so that the connection could be established.
Is there any command line tool to make this selection and save it so that when connecting the dialog would not be shown?
The idea is to make it remotely via ssh so that no physical presence is needed to connect.
I’m guessing org.freedesktop.portal.RemoteDesktop.SelectDevices dbus interface is used underneath as noted here…
ps.
I know that once the selection is made it is persisted and subsequent connections do not require making selection again but this does not solve the problem when one needs to connect with the host without anyone nearby to make the required selection.