Where is the location of file which holds information about open with dialog?I need to edit it to change default programs that open certain files?
These are the mimetype values contained in the MimeType key of all desktop files in the subdirectory ‘applications’ of the directories stored in the environment variable $XDG_DATA_DIRS. By default, those files are located in /usr/share/applications and its subdirectories ( i.e kde4)
cat /usr/share/applications/gqview.desktop [Desktop Entry] X-SuSE-translate=true Name=GQview GenericName=Image Viewer Comment=View and manage images Exec=gqview -r %F Icon=gqview.png Type=Application Terminal=false # Startup notification disabled, since the remote -r switch may not open a new window... #StartupNotify=false #StartupWMClass=gqview Encoding=UTF-8 Categories=Application;Graphics;Viewer;GTK;Photography; MimeType=application/x-navi-animation;image/bmp;image/x-bmp;image/x-MS-bmp;image/gif;image/x-icon;image/jpeg;image/png;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-cmu-raster;image/x-sun-raster;image/x-tga;image/tiff;image/vnd.wap.wbmp;image/x-xbitmap;image/x-xpixmap;image/svg;image/svg+xml;image/x-png;image/xpm;image/x-ico;image/x-pcx;
If for example you remove image/gif;, the program gqview won’t appear anymore in the “Open With” list when you right click on a .gif file. Similarely you can add mimetypes too. Unfortunately your changes will be overwritten at the next update, unless you create your own desktop files, put them in /usr/local/share/applications and change the value of XDG_DATA_DIRS accordingly.
- BTW this thread should be moved to the applications forum.
Thanks a lot.
Thanks a lot.
Sorry cannot figure out where to post it.