Closed
Description
I have a program which I package as a dpkg and as an AppImage, from the same source. The binary from the dpkg shows icons in the toolbar, the AppImage does not. I use icon names specified in the Icon Naming Specification, like QIcon::fromTheme("list-add")
. I do not modify any environment variables for the AppImage.
In Ubuntu 18.04 no icons are shown, in Gentoo there are icons but not from the system theme.
AppImage: https://schlomp.space/attachments/15cba25f-e5a0-4c14-b08b-df35f8a4672e
.ui-file where I specify the icons: https://schlomp.space/tastytea/whyblocked/src/branch/master/src/whyblocked.ui#L141
The generated code looks like this:
QIcon icon1;
iconThemeName = QStringLiteral("list-add");
if (QIcon::hasThemeIcon(iconThemeName)) {
icon1 = QIcon::fromTheme(iconThemeName);
} else {
icon1.addFile(QStringLiteral("."), QSize(), QIcon::Normal, QIcon::Off);
}
action_add->setIcon(icon1);
Edit: Icons are shown in Fedora 28, no icons in Elementary 5.
Metadata
Metadata
Assignees
Labels
No labels