0

When I make an appimage of my simple gtk4 application and run it on certain distros like fedora the svg icons don't render properly. It looks like this: https://i.imgur.com/3cKKkjx.png

The basic code for loading them is:

    GtkIconTheme *theme = gtk_icon_theme_get_for_display(gdk_display_get_default());
    gtk_icon_theme_add_search_path(theme, "data/icons/");

This repo contains the compiled executable and appimage together with the bundled libraries: https://github.com/zagortenay333/temp

And here is the source code: https://github.com/zagortenay333/kronomi

I tried both using the custom icons from a directory as well bundling them as a gresource.

Again, it renders correctly on ubuntu based distros but not fedora and manjaro for instance.

1 Answer 1

0

Placing the line:

export GDK_PIXBUF_MODULE_FILE="usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"

into the AppRun script fixes the problem.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.