lencx / Noi

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

Fix for AppImage preview icon & Noi.desktop file #193

Open Sadi58 opened 3 days ago

Sadi58 commented 3 days ago

It seems there's a problem in the AppImage file that fails to show app icon e.g. when Dolphin file manager has AppImage previews enabled. I've solved it by unpacking the AppImage to a folder and repacking it into an AppImage using "appimagetool-x86_64.AppImage". Here's what I've done:

  1. Copy "./usr/lib/noi/resources/icons/noi-win.png" to "./usr/share/icons/hicolor/1024x1024/apps/noi.png " creating necessary directory structure, and create a symlink to that file as "./noi.png" pointing to "usr/share/icons/hicolor/1024x1024/apps/noi.png" (without the leading "./"
  2. Open the file "./Noi.desktop", and add lines "Icon=noi" and "Categories=WebBrowser;Network;", also changing "Version=1.5" to "Version=1.0" (because "appimagetool-x86_64.AppImage" complained when packing the folder), and save it