-
Notifications
You must be signed in to change notification settings - Fork 3
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
OCRDesktop does not work on Wayland #8
Comments
This is the error message |
Howdy, for wayward does currently no API equivalent to libwnck exist. Its used to get window size and position. you might want to try -d parameter, it dors screenshot the ehole desktop instead the current window, so libwnck is not involved there. You might get better results in fullscreen the window you wanna OCR first. cheers chrys |
is it possible to feed ocrdesktop a region of the screen using slurp, that might resolve the window size and position problem |
Howdy, sure, you can pass almost any image file or pdf using -f filename parameter ocrdesktop -f /home/user/screenshot.png but you can’t interact with the window then using the mouse emulation. OCRdesktop know than the imagedata of the window but not where it is located on screen. |
Well if you find a way to get the window position, i can add a parameter to pass this values to OCRdesktop and activate mouse emulation with this information to be able to emulate clicks on right position. |
well, in the meantime pipewire comes into plan. maybe we can resolve this issue asking pipewire for the screen content. |
sure, i've been using normcap recently and it does the job for wayland |
Tested this on ArchLinux with kde Plasma 5.27.6, wayland session.
OCRDesktop does not work under Wayland.
Steps to reproduce:
Expected results: OCRDesktop should work under Wayland as well, giving the user more flexibility of choice when it comes to display server.
Actual results: the program does not work under Wayland at all.
The text was updated successfully, but these errors were encountered: