nukeop / nuclear

Streaming music player that finds free music for you
https://nuclearplayer.com
GNU Affero General Public License v3.0
12.04k stars 1.04k forks source link

linux icon #374

Open c-jacquin opened 5 years ago

c-jacquin commented 5 years ago

when installing the app with the .deb file, nuclear app doesnt have an icon. Has someone a clue ?

c-jacquin commented 5 years ago

same with the appImage

nukeop commented 5 years ago

Longstanding issue with electron-builder: https://github.com/electron-userland/electron-builder/issues/2577

tracker1 commented 4 years ago

@nukeop Try icns/ico conversion for mac/linux in the above thread...

https://github.com/electron-userland/electron-builder/issues/2577#issuecomment-491212259

mYnDstrEAm commented 3 years ago

Wasn't this solved in #737? There's no icon (anymore?). It can probably be solved somehow.

nukeop commented 3 years ago

Yah I think this can be closed now

mYnDstrEAm commented 3 years ago

Sorry for being unclear: there's no icon with v0.6.16. I thought it was solved but it looks like the same problem occurred again. Edit: I think the nuclear.desktop file in ~/.local/share/applications/ has to be deleted first. Edit2: that didn't help. I also checked that there's no nuclear.desktop file in /usr/share/applications after removing nuclear. After reinstallation of the .deb no icon is shown and /usr/share/applications/nuclear.desktop (it's no longer in ~/.local/share/applications/) has this content:

[Desktop Entry]
Name=Nuclear
Exec=/opt/nuclear/nuclear %U
Terminal=false
Type=Application
Icon=nuclear
StartupWMClass=nuclear
Name[es]=Reproductor de música Nuclear
Comment[es]=Reproductor que retransmite música desde fuentes encontradas automáticamente.
Comment=Streaming music player that finds music sources automatically.
MimeType=audio/mp3;audio/mpeg;audio/ogg;audio/ogg;audio/aac;audio/flac;audio/x-wav;audio/m4a;audio/weba;audio/mp4;audio/webm;
Categories=Audio;AudioVideo;Network;Player;Music;
mYnDstrEAm commented 2 years ago

After running

sudo rm /usr/share/applications/nuclear.desktop 
sudo rm /home/username/.local/share/applications/nuclear.desktop
sudo dpkg -P nuclear
sudo dpkg -i ./nuclear-v0.6.17.deb

still no icon is set. Is an icon showing for other people on Linux? Should I run other commands to fully remove nuclear? Please readd the icon.

ghost commented 2 years ago

Not for me, I'm on openSUSE and i had to set the icon manually

ghost commented 2 years ago

My solution was linking nuclear's icon to ~/.icons/. No need to touch nuclear.desktop file.

ln -s /usr/share/icons/*/*/*/nuclear.png ~/.icons/

I found actual path of nuclear.png: nuclear.png -> /usr/share/icons/hicolor/0x0/apps/nuclear.png