openSUSE / kmozillahelper

KDE mozilla integration
MIT License
17 stars 9 forks source link

kmozillahelper opens a link in both firefox and chromium #33

Open jirislaby opened 2 years ago

jirislaby commented 2 years ago

When I click a link in Thunderbird, I see it opened in both firefox and chromium. It doesn't happen right after start of TB. It happens after some uptime. So maybe chromium registers itself somewhere. Here is strace of TB's helper when a link is clicked: strace.txt

Vogtinator commented 2 years ago

Does that also happen if you run kde-open5 https://code.opensuse.org/leap/features/issue/35?

jirislaby commented 2 years ago

No, only from TB's helper.

Vogtinator commented 2 years ago

When did this issue start? Can you get backtraces with strace -ketrace=clone?

jirislaby commented 2 years ago

It started 1-2 weeks ago. Strace: strace.txt

Vogtinator commented 2 years ago

There was a similar issue some time ago which was related to XDG activation tokens on Wayland, which I also see in the trace here.

Does it work if you export QT_QPA_PLATFORM=xcb or unset WAYLAND_DISPLAY before starting TB?

jirislaby commented 2 years ago

Aaaah, that is for sure it. I started using TB and FF in "pure" wayland mode. Before that I used to start them with export QT_QPA_PLATFORM=xcb.

Vogtinator commented 2 years ago

I was able to reproduce it and reported the root cause upstream: https://bugs.kde.org/show_bug.cgi?id=446272

As a workaround, kmozillahelper can be ported over to KIO::OpenUrlJob. I did that in the lesskrun branch. Can you give it a try?