-
-
Notifications
You must be signed in to change notification settings - Fork 50
File Type Association
Version applied to this wiki:
- Platform: Any
- Version: Any
Pineapple Pictures is a cross-platform image viewer, and didn't provide any built-in ways to manage file type association on all platforms. Thus, you are on your own to handle file-type associations, which is a tedious job to do manually. This wiki provides some solutions that you can use.
There is a tool named PORTABLE Registrator, which can help you register any portable app as a default program in Windows, which, of course, include Pineapple Pictures. You can use the built-in Generic Image-Viewer
to associate basic image file types to Pineapple Pictures. If you want to tweak the default configuration, you can use the following configuration as well:
<AppType>
<Name>Pineapple Pictures</Name>
<OpenParameters>"%1"</OpenParameters>
<FileAssociations>
<string>.jpg</string>
<string>.jfif</string>
<string>.gif</string>
<string>.bmp</string>
<string>.png</string>
<string>.ico</string>
<string>.jpeg</string>
<string>.tif</string>
<string>.tiff</string>
<string>.webp</string>
<string>.psd</string>
<string>.svg</string>
<string>.kra</string>
<string>.xcf</string>
<string>.avif</string>
<string>.hdr</string>
<string>.qoi</string>
<!-- additional image formats version -->
<string>.apng</string>
<string>.exr</string>
</FileAssociations>
</AppType>
To be clear, the list might not exactly match all the formats that Pineapple Pictures supports (learn more) and sometimes users might want to omit some suffixes and use other image viewers as well (e.g. use something else for better SVG support). Feel free to edit the gist to fit your own need.
By default, Pineapple Pictures ships a net.blumia.pineapple-pictures.desktop
file which already contained a list of MIME-types that are supported by the application. Since users might install additional Qt image-formats plugins from their favorite package manager, the formats beyond the list will be need to associated manually.
Since different desktop environments have their different ways to manage file type association, you need to consult their manual to learn about how to associate the file types then.