Terminal command to add/remove .desktop files in task manager?

If I drag an application from the Application Launcher, the *.desktop file name as it appears in /usr/share/applications or ~/.local/share/applications is what gets added to the task manager launchers= variable.

For me changing the ~/.local/share/applications/*.desktop file does reload the launcher in the task manager automatically, but for the Application Launcher favorites it changes after plasmashell restart.

And today I found this post which looks exactly like the problem you’re facing?

Also, for manual .desktop files dragged into the panel it creates a different kind of widget:


[Containments][576][Applets][694]
immutability=1
plugin=org.kde.plasma.icon

[Containments][576][Applets][694][Configuration]
localPath=/home/luis/.local/share/plasma_icons/Turn Off Screen.desktop
url=file:///home/luis/.local/share/applications/Turn Off Screen.desktop

So it is making a copy of the desktop file to /.local/share/plasma_icons, but isn’t updating it when the original file changes?

So unless I completely broke my installation after trying plasma 6 in the same user this looks like another bug, can you confirm the same happens to you?