How to find `.desktop` file location for a particular applicationWhich *.desktop files belong where?What .desktop file options are available?Setting different default applications for different Desktop EnvironmentsWhat is TargetEnvironment=Unity?Places opens in Disk Usage Analyzer in Ubuntu 13.04Custom .desktop file — name doesn't show up in Unity dash on Ubuntu 13.04association window <-> .desktop file <-> launcher entryCan't change PDF defaultMake a snap install as the default app for a file type? (Eg. Sublime from Ubuntu Software)Java application (Minecraft) can't be launched from desktop
Time machine in Interstellar movie
How to understand Generative Adversarial Networks Discriminative distribution?
Would nuclear bombs be effective against clouds of nanites?
How do you write an attribution if there's ambiguity over which version of Creative Commons applies?
How much money would I need to feel secure in my job?
A variation on Caesar
Theme or Topic - what's the difference?
How does a Viper Antenna work?
Clarifications on Poisson Regression
Photographic Companions
Speaking German abroad and feeling condescended to when people speak English back to me
Is a mixed strategy ever the best response to a pure strategy?
Why is "not only... but also..." wrong in this sentence?
What type of beer is best for beer battered fish?
Object Orientated Programming - how to avoid duplication in processes that differ slightly depending on a variable
Completing the square to solve limit problems
What is the lowest level at which a human can beat the 100m world record (or: the presumed human limit) without using magic?
Prevent sleep if CPU usage is high
What type of rhetorical device is the offering of a source which is really long and not specifying what part of the source is relevant?
Is this a pure function?
How does sudo handle $HOME differently since 19.10?
how to make a twisted wrapper
Dissecting the exotic bulbfish
Dicht antonym - what is it?
How to find `.desktop` file location for a particular application
Which *.desktop files belong where?What .desktop file options are available?Setting different default applications for different Desktop EnvironmentsWhat is TargetEnvironment=Unity?Places opens in Disk Usage Analyzer in Ubuntu 13.04Custom .desktop file — name doesn't show up in Unity dash on Ubuntu 13.04association window <-> .desktop file <-> launcher entryCan't change PDF defaultMake a snap install as the default app for a file type? (Eg. Sublime from Ubuntu Software)Java application (Minecraft) can't be launched from desktop
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
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?
configuration .desktop ftp default-programs image-viewer
add a comment
|
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?
configuration .desktop ftp default-programs image-viewer
Possible duplicate of Which *.desktop files belong where?
– lamino
Jul 24 at 16:18
@lamino 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.desktopfile that can be located in non standard places also. While the other question is about where the.desktopfiles can be placed. So this is one to many mapping. While the other is many to one mapping
– Nikhil
Jul 24 at 16:20
So this is one to many mapping. While the other is many to one mapping!
– Nikhil
Jul 24 at 16:22
add a comment
|
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?
configuration .desktop ftp default-programs image-viewer
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?
configuration .desktop ftp default-programs image-viewer
configuration .desktop ftp default-programs image-viewer
edited Jul 24 at 16:21
Nikhil
asked Jul 24 at 15:33
NikhilNikhil
1851 silver badge11 bronze badges
1851 silver badge11 bronze badges
Possible duplicate of Which *.desktop files belong where?
– lamino
Jul 24 at 16:18
@lamino 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.desktopfile that can be located in non standard places also. While the other question is about where the.desktopfiles can be placed. So this is one to many mapping. While the other is many to one mapping
– Nikhil
Jul 24 at 16:20
So this is one to many mapping. While the other is many to one mapping!
– Nikhil
Jul 24 at 16:22
add a comment
|
Possible duplicate of Which *.desktop files belong where?
– lamino
Jul 24 at 16:18
@lamino 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.desktopfile that can be located in non standard places also. While the other question is about where the.desktopfiles can be placed. So this is one to many mapping. While the other is many to one mapping
– Nikhil
Jul 24 at 16:20
So this is one to many mapping. While the other is many to one mapping!
– Nikhil
Jul 24 at 16:22
Possible duplicate of Which *.desktop files belong where?
– lamino
Jul 24 at 16:18
Possible duplicate of Which *.desktop files belong where?
– lamino
Jul 24 at 16:18
@lamino 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. So this is one to many mapping. While the other is many to one mapping– Nikhil
Jul 24 at 16:20
@lamino 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. So this is one to many mapping. While the other is many to one mapping– Nikhil
Jul 24 at 16:20
So this is one to many mapping. While the other is many to one mapping!
– Nikhil
Jul 24 at 16:22
So this is one to many mapping. While the other is many to one mapping!
– Nikhil
Jul 24 at 16:22
add a comment
|
2 Answers
2
active
oldest
votes
A much faster and more universal search is with locate command:
$ locate *image*desktop
/usr/share/app-install/desktop/gimagereader:gimagereader-gtk.desktop
/usr/share/app-install/desktop/gnome-disk-utility:gnome-disk-image-mounter.desktop
/usr/share/app-install/desktop/gnome-disk-utility:gnome-disk-image-writer.desktop
/usr/share/app-install/desktop/imagej:imagej.desktop
/usr/share/app-install/desktop/imagemagick-6.q16:display-im6.q16.desktop
/usr/share/app-install/desktop/imagemagick:display-im6.desktop
/usr/share/app-install/desktop/imagevis3d:imagevis3d.desktop
/usr/share/app-install/desktop/kimagemapeditor:kde4__kimagemapeditor.desktop
/usr/share/app-install/desktop/simple-image-reducer:simple-image-reducer.desktop
/usr/share/app-install/desktop/trimage:trimage.desktop
/usr/share/applications/gnome-disk-image-mounter.desktop
/usr/share/applications/gnome-disk-image-writer.desktop
/usr/share/applications/screensavers/tessellimage.desktop
locate can search millions of files in a few seconds where it would take find many many minutes:
$ time find / -name '*image*.desktop'
real 0m52.563s
user 0m6.271s
sys 0m9.002s
$ time locate *image*desktop
real 0m0.705s
user 0m0.693s
sys 0m0.012s
Notice how grep was eliminated from original method and find 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:
sudo updatedb
add a comment
|
The name of the desktop file alone may not reveal sufficient information. The fundamental approach is to search the content of all .desktop files of the system to find the relevant one(s).
For example, the image viewer is displayed as Image Viewer in the Applications overview. Gnome Shell obtained that label from the .desktop file. To find the .desktop file (or files) that contains this string, execute
find / -name '*.desktop' -exec grep -H 'Image Viewer' ; 2>/dev/null
This uses find to find all .desktop files on the system. For each of the found files, grep is invoked, which searches for a string in the file, in this example Image Viewer. The 2>/dev/null suppresses the permission errors you inevitably get searching the root drive without root permissions.
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1160737%2fhow-to-find-desktop-file-location-for-a-particular-application%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
A much faster and more universal search is with locate command:
$ locate *image*desktop
/usr/share/app-install/desktop/gimagereader:gimagereader-gtk.desktop
/usr/share/app-install/desktop/gnome-disk-utility:gnome-disk-image-mounter.desktop
/usr/share/app-install/desktop/gnome-disk-utility:gnome-disk-image-writer.desktop
/usr/share/app-install/desktop/imagej:imagej.desktop
/usr/share/app-install/desktop/imagemagick-6.q16:display-im6.q16.desktop
/usr/share/app-install/desktop/imagemagick:display-im6.desktop
/usr/share/app-install/desktop/imagevis3d:imagevis3d.desktop
/usr/share/app-install/desktop/kimagemapeditor:kde4__kimagemapeditor.desktop
/usr/share/app-install/desktop/simple-image-reducer:simple-image-reducer.desktop
/usr/share/app-install/desktop/trimage:trimage.desktop
/usr/share/applications/gnome-disk-image-mounter.desktop
/usr/share/applications/gnome-disk-image-writer.desktop
/usr/share/applications/screensavers/tessellimage.desktop
locate can search millions of files in a few seconds where it would take find many many minutes:
$ time find / -name '*image*.desktop'
real 0m52.563s
user 0m6.271s
sys 0m9.002s
$ time locate *image*desktop
real 0m0.705s
user 0m0.693s
sys 0m0.012s
Notice how grep was eliminated from original method and find 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:
sudo updatedb
add a comment
|
A much faster and more universal search is with locate command:
$ locate *image*desktop
/usr/share/app-install/desktop/gimagereader:gimagereader-gtk.desktop
/usr/share/app-install/desktop/gnome-disk-utility:gnome-disk-image-mounter.desktop
/usr/share/app-install/desktop/gnome-disk-utility:gnome-disk-image-writer.desktop
/usr/share/app-install/desktop/imagej:imagej.desktop
/usr/share/app-install/desktop/imagemagick-6.q16:display-im6.q16.desktop
/usr/share/app-install/desktop/imagemagick:display-im6.desktop
/usr/share/app-install/desktop/imagevis3d:imagevis3d.desktop
/usr/share/app-install/desktop/kimagemapeditor:kde4__kimagemapeditor.desktop
/usr/share/app-install/desktop/simple-image-reducer:simple-image-reducer.desktop
/usr/share/app-install/desktop/trimage:trimage.desktop
/usr/share/applications/gnome-disk-image-mounter.desktop
/usr/share/applications/gnome-disk-image-writer.desktop
/usr/share/applications/screensavers/tessellimage.desktop
locate can search millions of files in a few seconds where it would take find many many minutes:
$ time find / -name '*image*.desktop'
real 0m52.563s
user 0m6.271s
sys 0m9.002s
$ time locate *image*desktop
real 0m0.705s
user 0m0.693s
sys 0m0.012s
Notice how grep was eliminated from original method and find 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:
sudo updatedb
add a comment
|
A much faster and more universal search is with locate command:
$ locate *image*desktop
/usr/share/app-install/desktop/gimagereader:gimagereader-gtk.desktop
/usr/share/app-install/desktop/gnome-disk-utility:gnome-disk-image-mounter.desktop
/usr/share/app-install/desktop/gnome-disk-utility:gnome-disk-image-writer.desktop
/usr/share/app-install/desktop/imagej:imagej.desktop
/usr/share/app-install/desktop/imagemagick-6.q16:display-im6.q16.desktop
/usr/share/app-install/desktop/imagemagick:display-im6.desktop
/usr/share/app-install/desktop/imagevis3d:imagevis3d.desktop
/usr/share/app-install/desktop/kimagemapeditor:kde4__kimagemapeditor.desktop
/usr/share/app-install/desktop/simple-image-reducer:simple-image-reducer.desktop
/usr/share/app-install/desktop/trimage:trimage.desktop
/usr/share/applications/gnome-disk-image-mounter.desktop
/usr/share/applications/gnome-disk-image-writer.desktop
/usr/share/applications/screensavers/tessellimage.desktop
locate can search millions of files in a few seconds where it would take find many many minutes:
$ time find / -name '*image*.desktop'
real 0m52.563s
user 0m6.271s
sys 0m9.002s
$ time locate *image*desktop
real 0m0.705s
user 0m0.693s
sys 0m0.012s
Notice how grep was eliminated from original method and find 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:
sudo updatedb
A much faster and more universal search is with locate command:
$ locate *image*desktop
/usr/share/app-install/desktop/gimagereader:gimagereader-gtk.desktop
/usr/share/app-install/desktop/gnome-disk-utility:gnome-disk-image-mounter.desktop
/usr/share/app-install/desktop/gnome-disk-utility:gnome-disk-image-writer.desktop
/usr/share/app-install/desktop/imagej:imagej.desktop
/usr/share/app-install/desktop/imagemagick-6.q16:display-im6.q16.desktop
/usr/share/app-install/desktop/imagemagick:display-im6.desktop
/usr/share/app-install/desktop/imagevis3d:imagevis3d.desktop
/usr/share/app-install/desktop/kimagemapeditor:kde4__kimagemapeditor.desktop
/usr/share/app-install/desktop/simple-image-reducer:simple-image-reducer.desktop
/usr/share/app-install/desktop/trimage:trimage.desktop
/usr/share/applications/gnome-disk-image-mounter.desktop
/usr/share/applications/gnome-disk-image-writer.desktop
/usr/share/applications/screensavers/tessellimage.desktop
locate can search millions of files in a few seconds where it would take find many many minutes:
$ time find / -name '*image*.desktop'
real 0m52.563s
user 0m6.271s
sys 0m9.002s
$ time locate *image*desktop
real 0m0.705s
user 0m0.693s
sys 0m0.012s
Notice how grep was eliminated from original method and find 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:
sudo updatedb
answered Jul 24 at 16:22
WinEunuuchs2UnixWinEunuuchs2Unix
60.7k18 gold badges123 silver badges237 bronze badges
60.7k18 gold badges123 silver badges237 bronze badges
add a comment
|
add a comment
|
The name of the desktop file alone may not reveal sufficient information. The fundamental approach is to search the content of all .desktop files of the system to find the relevant one(s).
For example, the image viewer is displayed as Image Viewer in the Applications overview. Gnome Shell obtained that label from the .desktop file. To find the .desktop file (or files) that contains this string, execute
find / -name '*.desktop' -exec grep -H 'Image Viewer' ; 2>/dev/null
This uses find to find all .desktop files on the system. For each of the found files, grep is invoked, which searches for a string in the file, in this example Image Viewer. The 2>/dev/null suppresses the permission errors you inevitably get searching the root drive without root permissions.
add a comment
|
The name of the desktop file alone may not reveal sufficient information. The fundamental approach is to search the content of all .desktop files of the system to find the relevant one(s).
For example, the image viewer is displayed as Image Viewer in the Applications overview. Gnome Shell obtained that label from the .desktop file. To find the .desktop file (or files) that contains this string, execute
find / -name '*.desktop' -exec grep -H 'Image Viewer' ; 2>/dev/null
This uses find to find all .desktop files on the system. For each of the found files, grep is invoked, which searches for a string in the file, in this example Image Viewer. The 2>/dev/null suppresses the permission errors you inevitably get searching the root drive without root permissions.
add a comment
|
The name of the desktop file alone may not reveal sufficient information. The fundamental approach is to search the content of all .desktop files of the system to find the relevant one(s).
For example, the image viewer is displayed as Image Viewer in the Applications overview. Gnome Shell obtained that label from the .desktop file. To find the .desktop file (or files) that contains this string, execute
find / -name '*.desktop' -exec grep -H 'Image Viewer' ; 2>/dev/null
This uses find to find all .desktop files on the system. For each of the found files, grep is invoked, which searches for a string in the file, in this example Image Viewer. The 2>/dev/null suppresses the permission errors you inevitably get searching the root drive without root permissions.
The name of the desktop file alone may not reveal sufficient information. The fundamental approach is to search the content of all .desktop files of the system to find the relevant one(s).
For example, the image viewer is displayed as Image Viewer in the Applications overview. Gnome Shell obtained that label from the .desktop file. To find the .desktop file (or files) that contains this string, execute
find / -name '*.desktop' -exec grep -H 'Image Viewer' ; 2>/dev/null
This uses find to find all .desktop files on the system. For each of the found files, grep is invoked, which searches for a string in the file, in this example Image Viewer. The 2>/dev/null suppresses the permission errors you inevitably get searching the root drive without root permissions.
edited Jul 24 at 17:27
answered Jul 24 at 17:04
vanadiumvanadium
13.2k2 gold badges22 silver badges41 bronze badges
13.2k2 gold badges22 silver badges41 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1160737%2fhow-to-find-desktop-file-location-for-a-particular-application%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Possible duplicate of Which *.desktop files belong where?
– lamino
Jul 24 at 16:18
@lamino 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
.desktopfile that can be located in non standard places also. While the other question is about where the.desktopfiles can be placed. So this is one to many mapping. While the other is many to one mapping– Nikhil
Jul 24 at 16:20
So this is one to many mapping. While the other is many to one mapping!
– Nikhil
Jul 24 at 16:22