Bug 465902 - Apps do not open when launched via a shortcut; works when launched using Kickoff
Summary: Apps do not open when launched via a shortcut; works when launched using Kickoff
Status: REPORTED
Alias: None
Product: frameworks-kglobalaccel
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.103.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-17 08:49 UTC by alexding97
Modified: 2023-02-23 23:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alexding97 2023-02-17 08:49:52 UTC
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.
Comment 1 Nate Graham 2023-02-17 21:19:09 UTC
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.
Comment 2 alexding97 2023-02-17 22:06:45 UTC
Thanks for the response. But why does the app start normally when I click on the icon in the kickoff menu?
Comment 3 Nate Graham 2023-02-21 18:16:13 UTC
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?
Comment 4 alexding97 2023-02-21 20:29:07 UTC
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).
Comment 5 Nate Graham 2023-02-21 21:30:57 UTC
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?
Comment 6 alexding97 2023-02-21 22:10:36 UTC
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.
Comment 7 Nate Graham 2023-02-22 19:55:37 UTC
Did you remember to run `kbuildsycoca5` after changing anything in ~/.local/share/applications?
Comment 8 alexding97 2023-02-22 21:47:53 UTC
No, I actually didn't know this. I tried it now but still no change.