Bug 493220 - Manually edited .desktop files for custom shortcuts should propagate changes to the KCM in real-time
Summary: Manually edited .desktop files for custom shortcuts should propagate changes ...
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keys (other bugs)
Version First Reported In: 6.1.5
Platform: Other Other
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-16 17:36 UTC by reports_go_brrr
Modified: 2025-10-07 21:01 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Showcase (3.86 MB, video/mp4)
2024-09-16 17:36 UTC, reports_go_brrr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description reports_go_brrr 2024-09-16 17:36:29 UTC
Created attachment 173741 [details]
Showcase

SUMMARY
If I bind shortcut for .desktop file in ~/.local/share/applications and I'll modify it, it wouldn't be updated in "Shortcuts". It requires you to remove .desktop file and then add it, then .desktop file is updated.
It works with .sh scripts too.

STEPS TO REPRODUCE
1. Create .desktop file in ~/.local/share/applications
2. Go to Settings and "Shortcuts"
3. Create here a shortcut for your .desktop file
4. Change the name or command in your .desktop file

OBSERVED RESULT
File is updated but not in "Shortcuts".

EXPECTED RESULT
If you are concerned about security in case of updating files automatically in "Shortcuts" (for example if .sh script starts to get malicious stuff without notifying user about it), then add an option (checkmark) to automatically update them. So need in manual updating will disappear only where I expect it to.
A lot better then automatic update of them all.
Also I suggest to enable automatic update for all shortcuts by default, but with switch to be able to disable it.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.9-arch1-2 (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Vanilla KDE Plasma, vanilla EndeavourOS.
Keys capturing done by ShowMeTheKey.
Comment 1 tomashnyk 2025-08-19 10:29:13 UTC
Does running kwin --replace makes the changes register (or rebooting)? If so, I think this is a duplicate of https://bugs.kde.org/show_bug.cgi?id=493220

Anyway, I think that editing the desktop file by hand needs not be necessarilly picked up immediately, but there should be a way of some command to register it.