To register a new mime type globally, there's this: https://help.gnome.org/admin/system-admin-guide/stable/mime-types-custom.html.en

Also, see my notes on mimeapps.list: https://github.com/doccaz/linux-kb/blob/main/gnome/mimetypes.txt



Erico Mendonca
Premium Services
SUSE


From: Dirk Stöcker <opensuse@dstoecker.de>
Sent: Wednesday, July 19, 2023 1:06 PM
To: opensuse-buildservice@opensuse.org <opensuse-buildservice@opensuse.org>
Subject: Extend the file-magic database in a package
 
Hello,

is there a way to extend the database of file-magic when installing a
RPM package. Any example package/spec doing that?

I tried Google, but that's not the easiest search term and thus I found
nothing.

For Freedom in Peace
--
http://www.dstoecker.eu/ (PGP key available)