lencx / Noi

🚀 Power Your World with AI - Explore, Extend, Empower.
https://noi.nofwl.com
6.44k stars 474 forks source link

AppImage Integration in Desktop fails #233

Open scharc opened 1 month ago

scharc commented 1 month ago

I am using appimagelauncherd to integrat appImages into my system and got an error:

Integrating: /home/scharc/.AppImages/Noi_linux_0.4.0_a6411eaa7f06fba4a23f427a5e7838b4.AppImage ERROR: appimage_register_in_system : Missing icon field in the desktop entry Error: Failed to register AppImage in system via libappimage ERROR: Failed to register AppImage in system Cleaning up old desktop integration files

Looks like simple bug ;)

silopolis commented 3 weeks ago

Hey @scharc Waiting for the fix to be built into the image, you can fix this with:

./Noi_linux_0.4.0_*.AppImage --appimage-extract
cd squashfs-root
ln -s usr/lib/noi/resources/icons/icon.png Noi.png
ln -s Noi.png .DirIcon
mkdir -p usr/share/icons/hicolor/{512x512,1024x1024}/apps/
ln -n usr/lib/noi/resources/icons/icon.png usr/share/icons/hicolor/512x512/apps/Noi.png
ln -n usr/lib/noi/resources/icons/icon@2x.png usr/share/icons/hicolor/1024x1024/apps/Noi.png
cat <<-EOP >> Noi.desktop
Categories=Utility
Icon=Noi
EOP
cd ..
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
./appimagetool-x86_64.AppImage squashfs-root Noi_linux_0.4.0_fixed.AppImage

You may prefer Chat;Network;, or WebBrowser;Network; as suggested by @Sadi58 in #193, for the Categories field of the Desktop file to file it in your menu entry of choice.