I’ve configured Ctrl-Alt-T to open a new terminal (xfce4-terminal) and PrtScrn to open gnome-screenshot.
When starting Okular to open a PDF the key bindings change (temporarily): Ctrl-Alt-T opens Konsole, PrtScrn opens Spectacle. Why?
When starting Okular without (!) opening a PDF the key bindings don’t change.
When key bindings have changed and I restart Cinnamon (wether by logging in/out or by restarting it from the taskbar’s context menu), my intended key bindings are back again.
I’ve never seen this weirdness in two decades running this mix of a gnome-based desktop environment and some additional kde/qt-based software. That’s why I’m curious about it.
The only changed files your nice find command lists are these two
My guess is that Okular (or a used lib) changes something within the shared memory. If I restart Cinnamon the original settings are back. Fun fact: If I start Okular (btw: 23.08.5) the second time after having restarted Cinnamon then Okular won’t change the key bindings again. This is somewhat weird, too.
A final note on this: In my opinion it is a bad design that an application changes the system’s global key bindings. That should be the job of the desktop environment but not of an individual application. No KDE/QT application but the Plasma desktop should start /usr/bin/kglobalaccel5.
So it only happens when opening a PDF, not just starting Okular? Might mean Okular’s pulling in some KDE config when it actually has to render something. That would explain the kactivitymanagerd changes.
Based on the lack of any recent activity, I’d guess it was somehow addressed in the foundational transitions that were part of the KDE MegaRelease 6 a couple years back.
Ubuntu 24.04 will forever be stuck on Plasma/Frameworks 5 and those old versions of KDE Gear, though - so if this is in fact fixed in the newer versions, a fix landing in Ubuntu 24.04 would require someone at the distribution level to develop/backport a patch to the old versions of KDE software that they are still distributing.
Thanks for this interesting link. Now being aware of what’s going on I know how to deal with it. May be an upgrade to 26.04 will heal it, may be not, we’ll see…