Gangmax Blog

自由之思想,独立之精神

How to Put a Desktop File to Your Main Menu in GNOME

| Comments

A desktop file is a text file looks like:

1
2
3
4
5
6
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=DbVisualizer 9.0.6
Exec=/bin/sh "/home/user/java/DbVisualizer/dbvis"
Icon=/home/user/java/DbVisualizer/.install4j/dbvis.pngxdg-open - opens a file or URL in the user's preferred application

In order to make it’s displayed in the main menu of GNOME, copy it to the following directory if you want all the users can user it:

1
/usr/share/applications

or to the following directory if you want it only yourself:

1
~/.local/share/applications

From here.

Comments