EDIT: This is not a duplicate as this question is the reverse of what the other question is asking. Here we know what is the application and we want to find its .desktop
file that can be located in non standard places also. While the other question is about where the .desktop
files can be placed.
I want to open images from an FTP server in the default image viewer rather than in the browser, so I wanted to know the path of default image viewer desktop file in Ubuntu. I tried the following:
cd -- /usr/share/applications
/usr/share/applications
$ find . -name '*.desktop' | grep image
./gnome-disk-image-mounter.desktop
./gnome-disk-image-writer.desktop
$ find . -name '*.desktop' | grep view
./calibre-ebook-viewer.desktop
./calibre-lrfviewer.desktop
./evince-previewer.desktop
./shotwell-viewer.desktop
./okularApplication_ghostview.desktop
./gcr-viewer.desktop
./gnome-info-overview-panel.desktop
./org.gnome.font-viewer.desktop
./paraview.desktop
But I still couldn't find it. Are there any other locations where the desktop files are stored?
Best Answer
A much faster and more universal search is with
locate
command:locate
can search millions of files in a few seconds where it would takefind
many many minutes:Notice how
grep
was eliminated from original method andfind
command was ammended.The disadvantage of
locate
is the database is updated daily. If you just installed the application you are searching for today, you will first need to run: