SUMMARY Emacs Client does not open when started via a shortcut. STEPS TO REPRODUCE 1. Assign a shortcut to Emacs Client in the launcher menu. 2. Use the shortcut. OBSERVED RESULT Emacs Client shows up in the taskbar. After a few seconds it disappears and nothing happens. EXPECTED RESULT Emacs Client opens. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch (available in About System) KDE Plasma Version: 5.27 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8 ADDITIONAL INFORMATION Bug is present also on older Plasma versions.
That means it launched, but either quit or crashed immediately. This would be an issue with the app itself or the system environment in which it runs.
Thanks for the response. But why does the app start normally when I click on the icon in the kickoff menu?
Ok, in that case there's a difference in the app's environment between when it's launched using Kickoff and when it's launched using KGlobalAccel. What kind of app is "Emacs client"? Where did you get it from?
It's the normal emacs application from the arch repository (I also have the emacs nativecomp version from the AUR on my laptop and I have the same behaviour there): When installed, I get two entries in the application menu, “Emacs” and “Emacs (Client)”. Emacs can be started with a shortcut, but Emacs Client not. For me, this issue (https://bugs.kde.org/show_bug.cgi?id=453748) sounds similar to my issue here (although the former is fixed).
Just tried this with the "Emacs" app available from my Fedora packages and the app launches normally for me both from Kickoff and also after setting the global shortcut of Meta+Ctrl+Alt+H for it in KMenuEdit. I don't seem to be able to find "Emacs (Client)" though. Is it a terminal application?
I experimented a bit and found out that it has probably nothing to do with Emacs Client. It seems that it is possible to assign shortcuts to desktop entries in ~/.local/share/applications/ through the application menu. However, they do not work, at least not all. I have Intellij idea in ~/.local/share/applications/ and can assign a working shortcut in the application menu. If I duplicate this entry with another name, the assigned shortcut does not work.
Did you remember to run `kbuildsycoca5` after changing anything in ~/.local/share/applications?
No, I actually didn't know this. I tried it now but still no change.