tusk icon indicating copy to clipboard operation
tusk copied to clipboard

Blank Icon in Linux Mint 19

Open tetsuo29 opened this issue 5 years ago • 8 comments

Describe the bug Tusk has no icon in Linux Mint 19.1 in the Menu or Taskbar

To Reproduce Install Tusk

Expected behavior Tusk should have an icon

Screenshots If applicable, add screenshots to help explain your problem.

Technical Info (please complete the following information)

  • OS: Linux Mint 19.1
  • Tusk Version: 0.14.0

Additional context Editing /usr/share/applications/tusk.desktop and changing the "Icon=" line to: Icon=/usr/share/icons/hicolor/0x0/apps/tusk.png ...will get the icon to display but, maybe this shouldn't be necessary?

For instance, Simplenote's icon line is simply "Icon=simplenote" and it works. And where Smplenote has icons of the following sizes in the following locations: /usr/share/icons/hicolor/512x512/apps/simplenote.png /usr/share/icons/hicolor/128x128/apps/simplenote.png /usr/share/icons/hicolor/256x256/apps/simplenote.png /usr/share/icons/hicolor/32x32/apps/simplenote.png /usr/share/icons/hicolor/16x16/apps/simplenote.png /usr/share/icons/hicolor/2x2/apps/simplenote.png

Tusk only seems to have the following: /usr/share/icons/Mint-Y/panel/24/tusk-indicator.svg /usr/share/icons/Mint-Y/panel/22/tusk-indicator.svg /usr/share/icons/Mint-Y/panel/16/tusk-indicator.svg /usr/share/icons/hicolor/0x0/apps/tusk.png

Is it possible that Tusk should include differently sized .png icons in a manner similar to what some other apps do in order for its "Icon=tusk" line in its .desktop file to work?

tetsuo29 avatar Dec 23 '18 23:12 tetsuo29

So, I tried a few things just to learn a bit more about how icons work in desktop Linux and here's what I found.

First, I edited /usr/share/applications/tusk.desktop and changed the "Icon=" line back to simply "Icon=tusk" Then, I ran "sudo gtk-update-icon-cache -f /usr/share/icons/hicolor/" I wanted to see if the icon cache just hadn't gotten updated after Tusk was installed. But, it seems that the icon in the /usr/share/icons/hicolor/0x0/apps folder is ignored by gtk-update-icon-cahce because after updating the cache there was still no icon in the Mint start menu or taskbar when (when Tusk is running). Curiously, the Tusk icon in the "system tray" part of the Mint taskbar works.

So, leaving "Icon=tusk" in the .desktop file, I installed imagemagick and did the following:

  • cd /usr/share/icons/hicolor/0x0/apps
  • sudo convert tusk.png -resize 512x512 /usr/share/icons/hicolor/512x512/apps/tusk.png
  • sudo gtk-update-icon-cache -f /usr/share/icons/hicolor/

After using those commands to make a 512x512 version of the icon in the appropriate folder and updating the icon cache, the Tusk icon is appearing in the Mint start menu and taskbar.

tetsuo29 avatar Dec 24 '18 17:12 tetsuo29

I just tested this in Ubuntu 18.04.1 and it had the exact same behavior and resolution.

tetsuo29 avatar Jan 12 '19 14:01 tetsuo29

Tried same resolution on Linuxmint and also solved it.

morganchenjp avatar Feb 15 '19 12:02 morganchenjp

Looks like it's related to https://github.com/electron-userland/electron-builder/issues/3609

klaudiosinani avatar Feb 26 '19 17:02 klaudiosinani

It works also on Linux Mint 18.2, thanks!

edoven avatar May 20 '19 01:05 edoven

It works also Ubuntu 18.04.2, thank you.

oguzaktas avatar May 30 '19 20:05 oguzaktas

It still works in Linux Mint 20. Being able to see the icon now makes me happy - thank you!

poshaughnessy avatar Jan 12 '21 22:01 poshaughnessy

So, leaving "Icon=tusk" in the .desktop file, I installed imagemagick and did the following:

* sudo convert tusk.png -resize 512x512 /usr/share/icons/hicolor/512x512/apps/tusk.png
* sudo gtk-update-icon-cache -f /usr/share/icons/hicolor/

I can confirm this worked for me as well. Thanks for figuring this out.

You can remove the cd and just target the source image directly, and most folks probably need imagemagick, so this is what I ran...

sudo apt install -y imagemagick
sudo convert /usr/share/icons/hicolor/0x0/apps/tusk.png -resize 512x512 /usr/share/icons/hicolor/512x512/apps/tusk.png
sudo gtk-update-icon-cache -f /usr/share/icons/hicolor/

Edit: I am on Linux Mint 20.1 Cinnamon, Tusk 0.23.0

ghaberek avatar Feb 09 '21 19:02 ghaberek