YomiNinja
YomiNinja copied to clipboard
Wayland support
Hello
This program as it stands essentially already supports wayland. The problems are as follows.
When requesting permission to do something, that permission is not saved (For example if you ask for a screen when pressing alt-s, you must ask for that screen every single time you press the hotkey)
You cannot manually move the red window (This would be solved if you had an option to give it a title bar)
No global hotkeys (Not solvable)
If a person could set an OCR to run on a timer as an option, and activate a window decoration, this would become usable on wayland. Is this functionality for initial wayland support desired?
Just an update to this, global hotkeys do work in wayland...with an asterik.
For example, if we run it in x11 mode, global hotkeys do in fact work in certain window managers. In KDE for example, you can set legacy x11 applications to allow global hotkeys (by going to settings -> applications -> Legacy x11 app support and checking whatever box you want) They should also work in any window manager that implements the global hotkey portal, but they don't seem to be working when ran in native wayland mode (pass the flag --ozone-platform=wayland) Passing that flag does improve windowing support.
Ideally native wayland support would be the way to go if we can get it all working, but x11 working perfectly under wayland would be perfectly acceptable too. Looking into it now.
Thanks for the suggestions! I'll make the overlay window manually movable, which shouldn't be too difficult to implement. Regarding the timer, I'm working on the Auto OCR feature and will include this as an option.
It would be great if Electron could adopt xdg-desktop-portal global shortcuts (refer to this issue). If not, I might explore implementing a solution myself. Another option could be using websockets, similar to what people have been doing for OBS on Wayland (obs-cli + custom shortcuts).
@matt-m-o If needed, you can also do DBus stuff to show/hide the main app, from the hypothetical obs-cli equivalent. E.g. this sorta thing
Are there any news regarding this? would love to be able to use the app on Wayland