athens
athens copied to clipboard
AppImage icon isn't correctly packaged
Problem
The package icon in AppImage builds is stored /usr/share/icons/hicolor/0x0
instead of the expected /usr/share/icons/hicolor/512x512
which results in the OS using its default .desktop icon.
Screenshots/Demo
Athens Version 1.0.0-beta.80
Issue has existed since 1.0.0-beta.65
I use AppImageLauncher to automatically register the .desktop
To resolve this issue, I've had to move the icon from the 0x0
to the 512x512
folder.
This issue seems to be related to https://github.com/electron-userland/electron-builder/issues/5294.
I wrote simple function to add to the .bashrc or .zshrc file to temporarily fix the icon issue.
Copy the current icon file to ~/.local/share/icons/hicolor/512x512/apps
and name it Athens.png
Add the function below to your .bashrc or .zshrc file and run exec $SHELL
or restart your shell.
fix-athens() {
# local desktop_file=$(find $XDG_DATA_HOME/applications -iname "*Athens.desktop")
local desktop_file=$(fd --search-path=$XDG_DATA_HOME/applications -i 'appimagekit.*Athens')
sed -i '
s/Name=Athens.*/Name=Athens/;
s/Icon=appimagekit.*Athens/Icon=Athens/;' $desktop_file
}
PS: I used fd
for faster search.
@sid597 not sure the os/mac
label is correct. I'm seeing this on Linux (using the AppImage form v1.0.0).
I had this issue (Ubuntu 21.10) and similar to @idadzie 's answer ( https://github.com/athensresearch/athens/issues/1157#issuecomment-841236777 ) found myself using a appimage utility to scan for appimage apps so desktop entries are made automatically.
- https://github.com/TheAssassin/AppImageLauncher is one
- I used a newer implementation of appimaged - https://github.com/probonopd/go-appimage/blob/master/src/appimaged/README.md - which shows the icon without any issues or additional tweaks needed