Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Now why does wayland break screenshot and keyboard tools? Because "every program is a keylogger by default and can see any event, look at the contents of any window" is a major security issue, especially as it means the entire security model of screen lockers or containerized applications is useless.

OK, so what's the solution here? Give up on screen-shotting tools forever? Or is there a plan to fix this somehow?



There’s an API for that. e.g. KDE Spectacle uses it, which is why it can be used as screenshot tool under wayland no matter your DE.

But by making it an explicit API, you can also apply an include/exclude list to the programs allowed to call this API, and e.g. exclude sandboxed applications from taking screenshots. Or e.g. add a permissions prompt (as on android or iOS) for an application to request to be on that include list.


The solution is to make it a permission. On macOS you can’t just record the screen, you can open the OS settings page and tell the user to allow screen recording and now your program gains access to this feature.


I use grim[0] under Wayland, and it can grab things off my screen.

[0] https://github.com/emersion/grim




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: