sesetrx.blogg.se

Freeplane opensuse repository
Freeplane opensuse repository









freeplane opensuse repository

(If you want to test this before running it live, change xargs to xargs echo and it will print the resulting command instead of running it.) sort -u then removes the redundant lines, then they're handed to xdg-mime to set the new defaults. desktop files for each of the viewers ( Ristretto, Geeqie, and GThumb in my case), extracts the MIME definition (which is prefaced by MimeType= and then contains a semicolon-delimited list), removes the (previously matched) preface label, and splits the list into one entry per line. usr/share/applications/.desktop |sort -u \ Finally, I set that application to be the default for all of the other applications' MIME types: sed '/^MimeType=/!d s/// s/ /\n/g' \ Next, I manually verified that none of the MIME types would be incompatible with my new preferred application. I took the above command and assigned it to each of the MIME types controlled by the image viewers and then created a new sktop by cloning one of them (this is optional, you can merely reuse your favorite). Warvariuc's answer already mentions xdg-mime usage like: xdg-mime default sktop image/jpegĪfter lots of playing with image editors and viewers, I ended up with different viewers for different image types with almost no consistency, especially among the rarer image types. Older versions of Ubuntu may not check ~/.config, so make sure you try ~/.local/share as well.Ĭommands like: xdg-settings set default-web-browser sktopį (previously called the X Desktop Group, thus the "XDG" abbreviation) is the group currently driving X standards like this ( learn more at Wikipedia). $XDG_CONFIG_DIRS: none, appended to XDG_CONFIG_HOME.$XDG_DATA_DIRS: none, appended to XDG_DATA_HOME.$XDG_DATA_DIRS/applications/mimeapps.listĪnd then the default values for those environment variables is given at : $XDG_DATA_DIRS/applications/$desktop-mimeapps.listĭistribution-provided defaults, desktop-specific $XDG_DATA_HOME/applications/mimeapps.list $XDG_DATA_HOME/applications/$desktop-mimeapps.listįor completeness, deprecated, desktop-specific Sysadmin and ISV overrides, desktop-specific User overrides (recommended location for user configuration GUIs) User overrides, desktop-specific (for advanced users) Unless you choose otherwise, these are the applications used when you 'Open' a file. The file /usr/share/applications/defaults.list provides the information for the system defaults. This tells the system what applications can be used for that MIME type and provides the applications in the 'Open With' list. desktop file would take too long if it was done every time a file was opened. When the application package is installed, the system extracts this MIME type data into a more easily accessible database because looking in each. (Note GIMP 2.7 is a version I have installed from a PPA, so is higher than the current version in the Ubuntu repositories). See the MimeType field - this lists the supported MIME types.The Exec field tells the system to use the command gimp-2.7 %U, replacing '%U' with the files to open. MimeType=application/postscript application/pdf image/bmp image/g3fax image/gif image/x-fits image/pcx image/x-portable-anymap image/x-portable-bitmap image/x-portable-graymap image/x-portable-pixmap image/x-psd image/x-sgi image/x-tga image/x-xbitmap image/x-xwindowdump image/x-xcf image/x-compressed-xcf image/tiff image/jpeg image/x-psp image/png image/x-icon image/x-xpixmap image/svg+xml application/pdf image/x-wmf image/jp2 image/jpeg2000 image/jpx image/x-xcursor desktop file: Ĭomment=Create images and edit photographsĬategories=Graphics 2DGraphics RasterGraphics GTK This is the file used for menus, desktop shortcuts, etc.įor example, GIMP has the following. desktop file which is placed in /usr/share/applications. When an application is installed, it can specify what MIME types it can open and the command to use to open the files in the.

freeplane opensuse repository

The file manager (Nautilus, by default) uses the MIME type of a file to determine which program to open it with.











Freeplane opensuse repository