To localize a desktop file for a specific user:
$ cp /usr/share/applications/application.desktop ~/.local/share/applications/
and edit the file
~/.local/share/applications/application.desktop as needed.
Similarly, you can customize application desktop directories and menus after doing:
$ cp /usr/share/desktop-directories/app_group.directory ~/.local/share/desktop-directories/ $ cp /etc/xdg/menus/gnome-applications.menu ~/.config/menus
To check a desktop file syntax and activate:
$ desktop-file-validate ~/.local/share/applications/application.desktop $ update-mime-database ~/.local/share/mime $ update-desktop-database ~/.local/share/applications
For an example, see the
Linux Installation of Personal Notes File
topic and also
How to extend a .desktop file for adding new Actions?.