Skip to content

do not deploy dependencies for libqgtk3.so #91

Description

@Samueru-sama

This is the Qt plugin that allows Qt apps to follow the GTK theme of the host.

The problem is that, it is highly likely that when an appimage is deployed, not all dependencies for libqgtk3.so are going to present, since that means gtk3, gio and gdk-pixbuf needs to be added to the container.

  • If all of gtk3 gets added to the application, nothing bad happens.

  • If none of gtk3 gets added, nothing bad happens either.

  • If some of the dependencies of libqgtk3.so get added, then issues happen

See pkgforge-dev/Dolphin-emu-AppImage#41

This was caused because the gdkpixbuf that linked to glycin was added to the appimage, this caused the application to crash when you went to use the file picker.

I fixed it by adding the gdk-pixbuf2 that doesn't depend on glycin, however a much better thing to do is just not deploy the dependencies of this at all.

You can test this with the Qt6+dbus demo here: https://github.com/pkgforge-dev/Anylinux-AppImages/releases/tag/demo

If the host has no gtk at all, Qt just doesn't use this plugin as it will fail to load:

Image

And if the host has gtk installed, then Qt is able to use the plugin without issue, even if the host is alpine linux:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions