Some Computer Hints

Ubuntu GNOME

Desktop Files

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/ ~/.local/share/desktop-directories/
$ cp /etc/xdg/menus/ ~/.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?.


To create GUI-style interactions from your Bash script or command line, you can use the zenity command. For an example, you can look at Add password option to default compress menu.