flatpak-builder icon indicating copy to clipboard operation
flatpak-builder copied to clipboard

Provide way to rename mime .xml files

Open alexlarsson opened this issue 8 years ago • 3 comments

From @jurf on August 13, 2017 14:17

So we can stop doing things like:

"post-install": [
    "mv /app/share/mime/packages/scribus.xml /app/share/mime/packages/net.scribus.Scribus.xml"
]

Copied from original issue: flatpak/flatpak#958

alexlarsson avatar Aug 25 '17 09:08 alexlarsson

This would also be great for mimetype icons, which currently have to be renamed manually and the new names have to be added to the xml file.

jurf avatar Oct 29 '17 15:10 jurf

This is much more complex. Renaming the mime .xml files. There is also renaming the icons for these mime type that otherwise don't get exported, but then the icon name should be set in the .xml file to match as this breaks the standard name of mime icons.

hfiguiere avatar May 30 '21 15:05 hfiguiere

We could have:

rename-mime: file.xml

This would rename the MIME .xml file

and also

rename-mime-icons: [ icon-name ]

This would act like rename icon, except it would rename to $FLATPAK_ID.icon-name and then modify the MIME .xml file to set the icon name.

hfiguiere avatar May 30 '21 16:05 hfiguiere

My proposed implementation in #567

hfiguiere avatar Oct 22 '23 01:10 hfiguiere