I want to add some custom options when running VS Code, so I tried to override the global Exec settings of the desktop file by editing the application entry shown in the KDE application launcher (I use the KDE spin of Fedora). I tried to modify the “Command” section in the figure below:
But after I clicked “OK” and re-open the settings of the application entry, the Command field still has the original value. I’ve checked the
~/.local/share/applications
directory and a new desktop file called code.desktop
is created with the correct Exec value, so I think the problem is that the local desktop file does not override the global desktop file located at /usr/share/applications
. Also, in the KDE application launcher the location of the VS Code desktop file is still /usr/share/applications
instead of my local version. What could cause this problem, and how can I solve it?
An additional information which might help is that I manally created a desktop file for my MATLAB installation and put it in ~/.local/share/applications
, and that file is correctly recognized by KDE.