Skip to content

Update MIME Database During AppImage Build#191

Merged
azubieta merged 2 commits intoAppImageCrafters:mainfrom
TheBrokenRail:mime
Apr 8, 2022
Merged

Update MIME Database During AppImage Build#191
azubieta merged 2 commits intoAppImageCrafters:mainfrom
TheBrokenRail:mime

Conversation

@TheBrokenRail
Copy link
Copy Markdown
Contributor

This helps prevent nasty errors like:

(zenity:859894): Gtk-WARNING **: 18:19:45.629: Could not load a pixbuf from /org/gtk/libgtk/icons/16x16/status/image-missing.png.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)

It does require the developer to include shared-mime-info in their package includes.

@TheBrokenRail TheBrokenRail changed the title Update Mime Database During AppImage Build Update MIME Database During AppImage Build Mar 12, 2022
@azubieta
Copy link
Copy Markdown
Contributor

azubieta commented Mar 18, 2022

Do you tested that the resulting database cache is portable ?

@TheBrokenRail
Copy link
Copy Markdown
Contributor Author

All the generated files seem to just be localizations and extension globs, it also works fine in a Docker container.

@azubieta azubieta changed the base branch from master to main April 8, 2022 21:17
@azubieta azubieta merged commit f280d9f into AppImageCrafters:main Apr 8, 2022
@azubieta
Copy link
Copy Markdown
Contributor

azubieta commented Apr 8, 2022

Thanks for the contribution !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants