Resolve service files from applications folder
The bug was caused by the fact that KServiceActionComponent expected custom service files to be in
~/.local/share/kglobalaccel, but code responsible for copying the original service file did not create its parent directory in https://invent.kde.org/plasma/plasma-desktop/-/blob/master/kcms/keys/kcm_keys.cpp#L173 and failed to copy silently.
Instead of fixing this, this patch makes this copying unnecessary by looking for service file in the regular applications directory and allow users to more reliably transfer their settings between systems since its shortcut setting won't rely on the
~/.local/ system specific folder.
A next step will be to remove this copying code in
Apps installing their service file to
prefix/share/kglobalaccel aren't be affected. https://invent.kde.org/frameworks/kglobalaccel/-/blob/master/src/runtime/globalshortcutsregistry.cpp#L315
Thanks @davidre for helping out on the explanation.
BUG: 421329 FIXED-IN: 5.73