Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen sharing via apps like TeamViewer and AnyDesk, is unattended mode possible in Wayland? #326

Open
TheGreenAirplane opened this issue Mar 16, 2024 · 4 comments

Comments

@TheGreenAirplane
Copy link

Hello,
this is a bit of a "just in case" question, and I don't like spamming it here because you've been very helpful. But I like Cage, and I have to ask before I move on to something else.

One of my requirements is that we need to be able to connect to screen sharing/remote control to the kiosk machine, in unattended mode (meaning there can't be a confirmation dialog for someone standing by the machine to tap). After trying this with TeamViewer, I quickly realized this isn't to be possible - due to Wayland's security concept, the user must confirm a dialog before any sort of screen or control sharing is allowed:

While I was able to install and run the TeamViewer host, it said "Wayland detected", and trying to connect would fail every time. With AnyDesk I didn't fair any better - the troubleshooting guide demands I put WaylandEnabled=false in the gdm3 config.

So this seems like a dead end to me, but just in case, is there a way to work around this, where I can still use Cage and do unattended access?

@joggee-fr
Copy link
Collaborator

I don't know if Wayland is supported by TeamViewer or AnyDesk. Several protocols have been added to base Wayland by wlroots (the library on which is based Cage) to support this kind of use cases. You can check wayvnc for example as a VNC server compatible with Cage.

@emersion
Copy link
Contributor

Some apps are using the portals API, in which case you may want to look into xdg-desktop-portal-wlr. But that won't help with the permission dialog issue, that's more of a xdg-desktop-portal issue than anything else.

@TheGreenAirplane
Copy link
Author

I don't know if Wayland is supported by TeamViewer or AnyDesk. Several protocols have been added to base Wayland by wlroots (the library on which is based Cage) to support this kind of use cases. You can check wayvnc for example as a VNC server compatible with Cage.

Thanks. Let me get this clear:
From the wayvnc readme:
"This is a VNC server for wlroots-based Wayland compositors (:no_entry: Gnome, KDE and Weston are not supported). "
Does this mean that if I temporarily disabled Cage and switched back go Gnome to do some maintenance on the machine, wayvnc would stop working and I'd need a different screen sharing solution for that?

@joggee-fr
Copy link
Collaborator

Does this mean that if I temporarily disabled Cage and switched back go Gnome to do some maintenance on the machine, wayvnc would stop working and I'd need a different screen sharing solution for that?

I am not sure to understand exactly what you want to do. But yes, if you switch to Gnome, wayvnc will not work anymore. You have to use an other compatible VNC server e.g. Gnome Remote Desktop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants