Broken icon on Linux
- Insomnia Version: 7.0.1
- Operating System: Arch Linux 5.3.5
Details
I think 7.0.1 broke the desktop icon again:

I'm using Gnome 3.34.1
Also on Arch, installed Insomnia 7.0.1 via AUR and also seeing this issue with KDE Plasma 5.16.5
Also in Ubuntu 19.04, installed via .deb package.
I have the same problem on Xubuntu 18.04 on Insomnia version 6/7. Installed via deb package. Similar Electron apps have correct icon in task bar.

Same issue, Ubuntu 19.04 installed via repository
Found a (temporary) solution on Ubuntu 18.04:
On your terminal, run:
locate insomnia.png
It should show something like this:
/usr/share/icons/hicolor/0x0/apps/insomnia.png
Now edit the insomnia.desktop file (BACKUP THIS FILE BEFORE EDITING):
sudo nano /usr/share/applications/insomnia.desktop
Change the 'Icon' line to reflect the following:
Icon=/usr/share/icons/hicolor/0x0/apps/insomnia.png
Close any opened instances of Insomnia and open a new one, the icon should show now
Fix worked for me on Arch as well, and the icon showed up in the same location.
It'd still be good to get a fix to the installation process so this doesn't happen
Hmm, strange. Probably an easy fix but is frustrating that this keeps happening. Will fire up a VM and get this one fixed for the next release.
It happens on Ubuntu 16.04.6 LTS (Xenial Xerus). That fix works for me. Thank you @christianlmc!
Workaround does not work for Xubuntu 18.04. ((( Also it might be local user desktop file for modification:
/home/krasoffski/.local/share/applications/insomnia.desktop
excellent I can resolve copy the file insomnia.png in this folder /usr/share/icons/hicolor/0x0/apps/ and mod the file /usr/share/applications/insomnia.desktop in Line Icon=/usr/share/icons/hicolor/0x0/apps/insomnia.png Using Elementary Os 5.0 Juno
Same on 7.0.3
Just got an Ubuntu VM going so I can work on a fix
The AppImage seems to be fine, which is weird
I fixed this in elementary OS by linking the icon in to /usr/share/pixmaps:
sudo ln -s /usr/share/icons/hicolor/0x0/apps/insomnia.png /usr/share/pixmaps
Log out, then log back in and the icon should appear.
That fix works for me. Thank you @wdolorito !
- Insomnia: 7.03
- OS: Pop!_OS 19.10
- Gnome: 3.34.1
Does not work for Xubuntu 18.04
Does not work for Xubuntu 18.04
I was curious about this, since elementary is built on ubuntu 18.04 as well, so I downloaded an ISO and installed Xubuntu in a VM. After installing insomnia from the repos, as expected, the icon did not appear in the menus. I linked the icon as I did in eOS, logged out, logged back in and the icon showed up. Are you still experiencing the problem?
Same here on Insomnia 7.0.3 running on Linux Mint 19.1 and 19.2.
@christianodejesus , I was able to display the icon on the desktop by changing the Icon entry: Icon=/usr/share/icons/hicolor/0x0/apps/insomnia.png
Same here on Insomnia 7.0.3 running on Linux Mint 19.1 and 19.2.
The workaround worked for me.
The problem is in the insomnia.desktop file. The Icon entry was like that:
Icon=Insomnia
