danpla / dpscreenocr

Program to recognize text on screen
https://danpla.github.io/dpscreenocr/
zlib License
236 stars 18 forks source link

Linux Wayland Support - Understanding Changes Needed #14

Open seltzered opened 3 years ago

seltzered commented 3 years ago

Hi, just starting to look at the code and wondering what would be needed for wayland support. If it's just around the hotkey triggering limitations I know some projects (e.g. kupfer) have just worked around needing X11KeyManager by having a command-line method of invocation paired with instructions to setup a custom shortcut (e.g. via gnome settings).

Opening an issue to discuss/understand if there's other aspects to be considered in attempting to support wayland. (Thanks for your earlier advice, application works fine under x11)

danpla commented 3 years ago

Hi.

Wayland support requires writing a separate backend, which will handle:

If someone has enthusiasm for writing and supporting a Wayland backend, I'll be glad to help. But I'm not currently interested in doing this myself, since I'm not going to switch to Wayland in the near future.

lamyergeier commented 9 months ago

@danpla I was wondering is it still possible after 2.5 years since your previous message. Also, most linux distributions have moved to wayland, please check if its possible.

seltzered commented 9 months ago

@lamyergeier worth noting there's some other tools that work on wayland (see https://github.com/dynobo/normcap#similar-open-source-tools ), I've been using frog ( https://github.com/TenderOwl/Frog ) and normcap ( https://github.com/dynobo/normcap )

Kirinko commented 6 months ago

@danpla Hi there! Today my KDE updated to 6.0 with Wayland as default and obviously dpscreenocr stopped working. Such a pity there is no symmetrical alternative to it in Wayland (I mean calling with a hotkey a capture grid wherever I want on the window. Both Frog and normcap have to capture whole display first and only then gives you an ability to limit the ocr region). Please, consider providing Wayland support for your fantastic app.