[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

uppercase issue by automatically generated App.desktop file name and lowercase entry in kglobalshortcutsrc



Hello, Wishing everybody to have had the chance to enjoy some relaxing seasonal vacations!

I suffer an KDE issue with setting keyboard shortcuts in up-to-date KDE Plasma 5.20 running on Debian/testing (bullseye). From the app "KDE System Settings", and in there "Shortcuts", I wanted define shortcuts for launching applications as usual.

I used the app "KDE Menu Editor" by launching it from the context menu entry "Edit applications..." of the main menu launcher button available for accessing the Plasma Panel "Application Menu" and then in this "KDE Menu Editor" created a new item for, let's say, "MyApp". This resulted in the automatic creation of a file ~/.local/share/applications/MyApp.desktop

If now creating a launcher shortcut for it from the app "KDE System Settings", and in there "Shortcuts", in its subcategory again called "Shortcuts" and there calling "Add application..." and defining the custom shortcut pressing keys "META" and "y" simultaneously, then the following lines are added to file ~/.config/kglobalshortcutsrc

[myapp.desktop]
_k_friendly_name=MyApp
_launch=Meta+Y,,

But the supposed to be correctly configured shortcut will not work.
I first suspected the problem to be in the third line, because all older entries have, instead of empty comma separation, real words after the commas written there. But editing the third line did not solve the problem. It didn't harm either. According to my tests, again motivated by comparison with other entries, adding to the second line the letters "Launch " is also neither needed nor harming. Then I noticed the uppercase letter "M" in file "MyApp.desktop", and changed the first line accordingly. This solves the issue.

[MyApp.desktop]
_k_friendly_name=Launch MyApp
_launch=Meta+Y,none,Launch MyApp

So, in the current KDE environment, either the automatic creation of the *.desktop files should use lowercase file names only, or the procedure which automatically edits kglobalshortcutsrc should respect uppercase file names.

Thanks for KDE and thanks for Debian!
Marco.


Reply to: