You are not logged in.

#1 2023-10-04 06:56:19

jronald
Member
Registered: 2022-05-09
Posts: 218

keyboard shortcuts in KDE Plasma ignore *.desktop for users

Env: KDE Plasma 5.27.8

e.g.

As below, both desktop files for application a exist.

/usr/share/applications/a.desktop
~/.local/share/applications/a.desktop

When using keyboard shortcuts for application a,
/usr/share/applications/a.desktop will be used instead of  ~/.local/share/applications/a.desktop which is expected.

Offline

#2 2023-10-04 11:59:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,667

Re: keyboard shortcuts in KDE Plasma ignore *.desktop for users

1. how do you determine that
2. https://man.archlinux.org/man/kbuildsycoca5.8.en

Offline

#3 2023-10-05 03:19:36

jronald
Member
Registered: 2022-05-09
Posts: 218

Re: keyboard shortcuts in KDE Plasma ignore *.desktop for users

seth wrote:

1. how do you determine that

By practice.
If I modify /usr/share/applications/a.desktop, the keyboard shortcut will respect it.
If I add ~/.local/share/applications/a.desktop, the entry in the application menu will respect it, but the keyboard shortcut will not.

Offline

#4 2023-10-05 06:04:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,667

Re: keyboard shortcuts in KDE Plasma ignore *.desktop for users

Did you re-assign the shortcut after introducing ~/.local/share/applications/a.desktop ?

Offline

#5 2023-10-05 09:24:19

jronald
Member
Registered: 2022-05-09
Posts: 218

Re: keyboard shortcuts in KDE Plasma ignore *.desktop for users

seth wrote:

Did you re-assign the shortcut after introducing ~/.local/share/applications/a.desktop ?

No

Offline

#6 2023-10-05 12:28:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,667

Re: keyboard shortcuts in KDE Plasma ignore *.desktop for users

The implied suggestion was to do that, b/c the shortcut probably doesn't launch the desktop service but bound to the Exec inside.

Offline

#7 2023-10-10 05:56:33

jronald
Member
Registered: 2022-05-09
Posts: 218

Re: keyboard shortcuts in KDE Plasma ignore *.desktop for users

seth wrote:

The implied suggestion was to do that, b/c the shortcut probably doesn't launch the desktop service but bound to the Exec inside.

If /usr/share/applications/a.desktop is modified, the keyboard shortcuts respects it.
So keyboard shortcuts in this case calls /usr/share/applications/a.desktop.

Offline

#8 2023-10-10 06:41:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,667

Re: keyboard shortcuts in KDE Plasma ignore *.desktop for users

Next best theory would be that the shortcuthardwires the canonical path to the .desktop service, same result, same mitigation strategy.

Offline

Board footer

Powered by FluxBB