When using Nautilus and I navigate to the /usr/share/applications
directory I get a listing of the meta data that is extracted from all of the .desktop files that live in that directory.
So the file in my example called "Oracle Java 7 Runtime"
in Nautilus translates to the file JB-java.desktop
which I took a wild guess at. In Nautilus the properties dialog does not reveal the name of that file, so its a hit and miss approach to get the file name.
Is there a better way? Short of looking for the string "Oracle Java 7 Runtime" in all of the files in the directory which is a bit clumsy.
Best Answer
The reply by @green7 is OK if you like the terminal.
However, this can be done directly from Nautilus, although it requires a script.
~/.gnome2/nautilus-scripts
This means the folder
nautilus-scripts
within.gnome2
inside your home folder. Note the.
in front of.gnome2
; this means it is a hidden file, and you need to press Ctrl+H within Nautilus to be able to see it. If thenautilus-scripts
folder doesn't exist, create it.Now, to use the script, use Nautilus to find those desktop files again. Select one or more of them > right-click > Scripts > Show .desktop name.
An example is shown below.
.