AppFlowy-IO / AppFlowy

Bring projects, wikis, and teams together with AI. AppFlowy is an AI collaborative workspace where you achieve more without losing control of your data. The best open source alternative to Notion.
https://www.appflowy.io
GNU Affero General Public License v3.0
50.2k stars 3.32k forks source link

[Bug] can't launch appimage #5306

Open superiums opened 1 month ago

superiums commented 1 month ago

Bug Description

can't launch, display this msg:

./AppFlowy-0.5.6-linux-x86_64.AppImage                                                                                                   ✘ 1

(AppFlowy:9850): Gtk-WARNING **: 10:18:44.121: Could not load a pixbuf from icon theme.
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: 无法识别的图像文件格式 (gdk-pixbuf-error-quark, 3)
Bail out! 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: 无法识别的图像文件格式 (gdk-pixbuf-error-quark, 3)
fish: Job 1, './AppFlowy-0.5.6-linux-x86_64.A…' terminated by signal SIGABRT (Abort)

How to Reproduce

download the appimage.

sudo chmod 755 appimage-file
./appimage-file

Expected Behavior

be launched.

Operating System

Arch Linux

AppFlowy Version(s)

0.5.6

Screenshots

No response

Additional Context

No response

superiums commented 1 month ago

gdk-pixbuf2 2.42.11-2 was installed already.

LucasXu0 commented 1 month ago

I did a search. Can you try this workaround?

https://github.com/wyyadd/LaLa/issues/40#issuecomment-1950290223

export XDG_DATA_DIRS="/usr/local/share:/usr/share"
echo $XDG_DATA_DIRS
./XXXX.AppImage
superiums commented 1 month ago

thanks for suggestion, i've tried to set XDG_DATA_DIRS, but not work. also i've tried to refresh mime cache, still no lucky.

si-erik commented 1 month ago

Modern themes use svg for icons. It seems like 'libpixbufloader-svg.so' is missing in the appimage, so it fails to load theme resources.

superiums commented 1 month ago

extra/gdk-pixbuf2 2.42.12-1 was already installed.