You are not logged in.

#1 2025-06-26 16:26:36

ATnpG
Member
Registered: 2025-06-26
Posts: 9

KanjiTomo & constant screen-share popups

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

#2 2025-06-27 05:53:27

ntb314
Member
Registered: 2025-02-13
Posts: 16

Re: KanjiTomo & constant screen-share popups

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! smile

Offline

#3 2025-07-02 11:09:05

ATnpG
Member
Registered: 2025-06-26
Posts: 9

Re: KanjiTomo & constant screen-share popups

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

#4 2025-07-02 11:23:41

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,856
Website

Re: KanjiTomo & constant screen-share popups

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.

Online

#5 2025-07-02 12:16:42

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,891

Re: KanjiTomo & constant screen-share popups

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

#6 2025-07-02 15:02:02

ATnpG
Member
Registered: 2025-06-26
Posts: 9

Re: KanjiTomo & constant screen-share popups

Lone_Wolf wrote:

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

Board footer

Powered by FluxBB