You are not logged in.
I'm having a weird issue that I can't seem to be able to find any results for on google.
When I run kanjitomo (on kde 6, wayland), every time I click on a different window I get two popups in a row asking me which screen to share. I assume this is caused by Wayland. For example, if I click on firefox, I get those two popups. I confirm I want to share the entire workspace (twice!), then I click on a terminal, and again two more popups show up. I click back to firefox, and TWO MORE POPUPS SHOW UP.
Does anyone know how I to debug this and prevent it from happening? There's nothing useful in the terminal that I run kanjitomo from. I assume I need to whitelist it somewhere, but given that I get no results from this specific error, I don't even know where to start...
Offline
Hey ATnpG,
You're right, this is likely a Wayland + KDE + Java issue. KanjiTomo uses Java's AWT for screen capture, which triggers the KDE screen sharing portal every time it tries to capture a new window. Afaik on Wayland, there's no global screen access, every capture must be explicitly approved.
Here are two possible solutions:
-Use X11 instead of Wayland as a workaround, this should bypass the portal entirely.
-Try setting QT_QPA_PLATFORM=wayland and XDG_CURRENT_DESKTOP=KDE explicitly, and check if xdg-desktop-portal or its KDE backend (xdg-desktop-portal-kde) is misbehaving.
Also, make sure your Java version is Wayland-aware (e.g., OpenJDK 17 or higher).
Hope this helped!
Offline
While those variables fixed the constant popups, unfortunately even with them Kanjitomo does not seem to be able to use its OCR functionality. I can only get it to work if I use the "zoom" window, which is really unwieldy.
Is it just me, or is it broken? And if so, is there no similar software for linux?
Offline
Mod note: moving to AUR Issues
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Kanjitomo hasn't seen updates in years, you're probably better off sticking to X if you want to use it.
https://aur.archlinux.org/packages/normcap is maintained and mentioned as an alternative on several lists.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Kanjitomo hasn't seen updates in years, you're probably better off sticking to X if you want to use it.
https://aur.archlinux.org/packages/normcap is maintained and mentioned as an alternative on several lists.
This is not even closely comparable. Kanjitomo functions as a dictionary with OCR. Hovering over a kanji shows the kanji itself with possible meanings and readings. normcap is just a nice frontend to tesseract that OCRs something and copies it to a clipboard, it's only half of what Kanjitomo does.
Offline