![]() The one that is in use depends on where it resides. desktop launchers with the same name may exist on the system. The 2>/dev/null suppresses the permission errors you inevitably get searching the root drive without root permissions. For each of the found files, grep is invoked, which searches for a string in the file, in this example Image Viewer. desktop file (or files) that contains this string, execute find / -name '*.desktop' -exec grep -H 'Image Viewer' \ 2>/dev/null Gnome Shell obtained that label from the. desktop files of the system to find the relevant one(s).įor example, the image viewer is displayed as Image Viewer in the Applications overview. The fundamental approach is to search the content of all. The name of the desktop file alone may not reveal sufficient information. In newer versions of Ubuntu, you can install locate by installing the package plocate: sudo apt install plocate If you just installed the application you are searching for today, you will first need to run: sudo updatedb The disadvantage of locate is the database is updated daily. Notice how grep was eliminated from original method and find command was ammended. Locate can search millions of files in a few seconds where it would take find many many minutes: $ time find / -name '*image*.desktop' ![]() usr/share/applications/screensavers/sktop usr/share/app-install/desktop/trimage:sktop usr/share/app-install/desktop/simple-image-reducer:sktop usr/share/app-install/desktop/kimagemapeditor:kde4_sktop usr/share/app-install/desktop/imagevis3d:sktop usr/share/app-install/desktop/imagemagick:sktop usr/share/app-install/desktop/imagemagick-6.q16: usr/share/app-install/desktop/imagej:sktop usr/share/app-install/desktop/gnome-disk-utility:sktop usr/share/app-install/desktop/gimagereader:sktop Are there any other locations where the desktop files are stored?Ī much faster and more universal search is with locate command: $ locate '*image*desktop' I tried the following: cd - /usr/share/applicationsīut I still couldn't find it. 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. While the other question is about where the. ![]() desktop file that can be located in non standard places also. Here we know what is the application and we want to find its. EDIT: This is not a duplicate as this question is the reverse of what the other question is asking. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |