indicator-sound-switcher icon indicating copy to clipboard operation
indicator-sound-switcher copied to clipboard

Black icon in tray at boot

Open phdzor opened this issue 4 years ago • 44 comments

When i boot into my Arch Linux icon in tray is black but when i right click - Quit the app and manually start it icon is normal color:

image Image

phdzor avatar Jul 12 '20 14:07 phdzor

I can't really come up with any possible explanation except for that it's a bug in Arch Linux or the Ayatana/AppIndicator lib.

yktoo avatar Jul 13 '20 06:07 yktoo

I'm having the same trouble, except quitting and restarting manually it still comes up black. This is with Manjaro Linux, which is Arch-adjacent, so might indeed be a bug in Arch. Will update if I figure anything out.

emersonrp avatar Jul 21 '20 20:07 emersonrp

In my case, I have no icon at all. The indicator looks like an empty space, it responds to my commands, but no icon is shown. I am using Linux Mint 20. It was OK until something updated. I tried to reboot; manually start, but nothing changed. I also started it with -vv option to see if some error show up in verbose mode, but I found nothing. I don't know if it is a bug in Cinamon theme, or if I broke something after installing. Is there any package I should reinstall to see if it fixes the problem?

fabrizziosoares avatar Aug 19 '20 16:08 fabrizziosoares

@fabrizziosoares Did you try to refresh icon cache as suggested here?

yktoo avatar Aug 19 '20 17:08 yktoo

Dear @yktoo I didn't try yet. Now I did and I still have the same problem. On important detail is that the icon appears on about box. It does not appear only on the tray.

fabrizziosoares avatar Aug 20 '20 15:08 fabrizziosoares

I have the same issue on Linux Mint 20 Cinnamon. I just noticed the issue in a recent update. This is what i see in the notification area: image I tried running the commands in the other thread but still not seeing the icon. Any troubleshooting suggestions?

densha avatar Aug 23 '20 16:08 densha

That's precisely the problem I am having. It looks like it happened after some update, but I don't know which one.

fabrizziosoares avatar Aug 27 '20 21:08 fabrizziosoares

I only get the black icon. It would be nice if a preference setting could override it. I'm on an updated Arch Linux with indicator-sound-switcher-2.3.4

(Using sound switch a lot -- thanks for creating and maintaining it!!!)

evert-mouw avatar Dec 10 '20 21:12 evert-mouw

Same issue as @fabrizziosoares (no icon at all in the system tray, which seems to be the same as https://github.com/yktoo/indicator-sound-switcher/issues/92 too ?) on Pop!_OS 20.10 (Ubuntu Groovy) with Cinnamon 4.6.7. Clearing the icon cache didn't help, nor did installing from various sources (snap, PPA+apt, .deb file).

Any ideas ? It's kind of nagging seeing this glitch all day long on a new system.. ;(

gnutix avatar Jan 11 '21 16:01 gnutix

I'm afraid these reports do not bring us any closer to the solution.

What I suspect is happening is that different distros / DEs handle icons a bit differently, which is further diversified by the use of themes.

I would recommend playing around with the icon files by copying them to various locations under /usr/share/icons/. Perhaps the problem is the SVG format so you might also try to fall back to using PNG.

Important: do not forget to refresh the icon cache after copying, otherwise the changes won't be detected by the system:

sudo update-icon-caches /usr/share/icons/*

yktoo avatar Jan 14 '21 19:01 yktoo

Closing until more information is available.

yktoo avatar Jun 18 '21 14:06 yktoo

There is no icon in the system tray

OS Ubuntu Studio kernel 5.11.0-41-low latency XFCE Sound Switcher Indicator version 2.3.6

Sound Switcher Indicator is installed via the repository The program is working. There is only an icon in the tray. More precisely, an empty space where the icon should be. I changed the icon themes without result. Maybe we need to put svg somewhere so that the program can see them?

Frost4142 avatar Nov 25 '21 14:11 Frost4142

@Frost4142 try to move icons around as suggested above:

What I suspect is happening is that different distros / DEs handle icons a bit differently, which is further diversified by the use of themes.

I would recommend playing around with the icon files by copying them to various locations under /usr/share/icons/. Perhaps the problem is the SVG format so you might also try to fall back to using PNG.

Important: do not forget to refresh the icon cache after copying, otherwise the changes won't be detected by the system:

sudo update-icon-caches /usr/share/icons/*

yktoo avatar Nov 25 '21 14:11 yktoo

I have tried all of the above methods with no result. When you start the program manually, the tray icon appears for a second and disappears.

Frost4142 avatar Nov 25 '21 14:11 Frost4142

@Frost4142 cannot reproduce it. Here's a vanilla Xubuntu 21.10 install: image

yktoo avatar Nov 25 '21 15:11 yktoo

https://disk.yandex.ru/d/wjntPcpO6MsQIg

Frost4142 avatar Nov 25 '21 15:11 Frost4142

https://disk.yandex.ru/d/78dl0BzdYME-YQ

Frost4142 avatar Nov 25 '21 15:11 Frost4142

https://disk.yandex.ru/d/rQ9RnVrGxdVudQ

Frost4142 avatar Nov 26 '21 04:11 Frost4142

I solved the problem by installing the old version indicator-sound-switcher_2.2.2-1_all.deb

Frost4142 avatar Nov 26 '21 06:11 Frost4142

Screenshots are good but I need to reproduce the problem in order to diagnose it. So far I failed to find a combination of OS and DE that would reproduce this behaviour.

yktoo avatar Nov 26 '21 07:11 yktoo

If I compare the latest version to 2.2.2, here are the differences in copied icons:

-    ('share/icons/ubuntu-mono-dark/status/22',  ['icons/ubuntu-mono-dark/indicator-sound-switcher.svg']),
-    ('share/icons/ubuntu-mono-light/status/22', ['icons/ubuntu-mono-light/indicator-sound-switcher.svg']),
-    ('share/icons/hicolor/22x22/status',        ['icons/default/indicator-sound-switcher.svg']),
-    ('share/icons/hicolor/scalable/status',     ['icons/default/indicator-sound-switcher.svg']),
+    ('share/icons/hicolor/scalable/status',     ['icons/indicator-sound-switcher-symbolic.svg']),
+    ('share/icons/hicolor/scalable/apps',       ['icons/indicator-sound-switcher.svg']),

This could give you a hint which locations do work for you and which don't.

It's also possible the SVG is displayed but is not rendered properly (e.g. fully transparent), especially because I switched to using symbolic icons. This can be checked by using a different, colourful SVG file.

yktoo avatar Nov 26 '21 07:11 yktoo

I will experiment more ! I will write how the result will be ! But it also works well with the old version ) https://yadi.sk/d/Mu7uv6DtU2EmOw https://yadi.sk/d/mIvNUPSJFzTJvw

Frost4142 avatar Nov 26 '21 07:11 Frost4142

It seems to me that the problem is in the Ubuntu Studio distribution I installed indicator-sound-switcher in Mint 20.2 there were no problems

Frost4142 avatar Nov 26 '21 08:11 Frost4142

I still can't reproduce it, using Ubuntu Studio 21.10. The icon appears OK in both KDE and XFCE sessions. image

yktoo avatar Nov 26 '21 09:11 yktoo

xfce+compiz+emerald maybe because of this ?

Frost4142 avatar Nov 26 '21 09:11 Frost4142

https://disk.yandex.ru/d/Wa7IfPE9zEfnOQ

Frost4142 avatar Dec 01 '21 19:12 Frost4142

Won ! Posted a png here /usr/share/icons/hicolor/symbolic/apps/indicator-sound-switcher.png /usr/share/icons/hicolor/symbolic/apps/indicator-sound-switcher-symbolic.png

Frost4142 avatar Dec 02 '21 05:12 Frost4142

Looks good, I see that in stock Ubuntu symbolic icons are somewhat scattered between /usr/share/icons/hicolor/scalable/ and /usr/share/icons/hicolor/symbolic/.

The icon is totally black though, I wonder if it looks better if you only put an SVG icon into /usr/share/icons/hicolor/symbolic/apps/indicator-sound-switcher-symbolic.svg (and remove all other icons)?

yktoo avatar Dec 02 '21 10:12 yktoo

Now in detail The black icon appeared when I turned on the SVG option in the composite manager in the /image upload section/ I have a similar problem I was with the Crow Translate program But everything was solved there simply in the settings there is a parameter where you can specify the user icon I looked at the DEB package where he unpacks his icons and, by analogy, placed the ISS icons in these directories , these ones worked paths /usr/share/icons/hicolor/symbolic/apps/indicator-sound-switcher.png /usr/share/icons/hicolor/symbolic/apps/indicator-sound-switcher-symbolic.png after sudo update-icon-caches /usr/share/icons/* A white icon lit up in the tray

https://yadi.sk/d/AqlqgJOSUq-DjA

Frost4142 avatar Dec 02 '21 11:12 Frost4142

/usr/share/icons/hicolor/scalable/ and /usr/share/icons/hicolor/symbolic/. /usr/share/icons/hicolor/symbolic/apps/indicator-sound-switcher-symbolic.svg (and remove all other icons)? I tried it the icon remained black

Frost4142 avatar Dec 02 '21 11:12 Frost4142