Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

Installer option to have a bottle handle a mime-type

Open MattSturgeon opened this issue 2 years ago • 2 comments

The Freedesktop standard allows a .desktop file to "handle" a particular MimeType (file type or URL scheme). For example, various mod managers handle the nxm:// URLs used by nexus mods.

While an installer could create a .desktop file using a script action, it'd be nice to have a managed way of handling this. This could probably leverage any existing systems you have which create bottle launching .desktop files.

It'd be even better if installers could make creating mime-type associations optional. For example, a checkbox during the installation wizard which asks if the user wants _XYZ bottle to handle ABC URLs systemwide _.

This would also make clean up easier too, as Bottles could remove any .desktop files associated with a bottle being uninstalled. However if the files were created by an installer's script this would be more difficult.

The main use case I have in mind for this is a Mod Organiser 2 and/or Vortex mod manager installer, as these need to handle nxm links in the system browser to work as expected. However I'm sure many other programs would benefit from system wide filetype/URL association.

As an example, steamtinkerlaunch installs this file when setting up Vortex

MattSturgeon avatar Apr 10 '22 20:04 MattSturgeon

Hi thanks for reporting! Please next time follow the Feature request template to keep all issues detailed.

mirkobrombin avatar Apr 11 '22 09:04 mirkobrombin

Note: installer manifests should handle a MimeType key which will be used on desktop entries gneration

mirkobrombin avatar Jul 14 '22 21:07 mirkobrombin