mkchromecast icon indicating copy to clipboard operation
mkchromecast copied to clipboard

No Tray Icon on 18.04

Open uniquePWD opened this issue 6 years ago • 22 comments

Anyone else experiencing this? Anyone know a fix? Even with Top Icons Plus it's missing.

uniquePWD avatar Mar 23 '18 10:03 uniquePWD

Yes, I see the same problem.

ygmarchi avatar Mar 25 '18 09:03 ygmarchi

Mines come back this morning.

uniquePWD avatar Mar 31 '18 10:03 uniquePWD

I installed 18.04 in a Vbox and I see the problem, too. Do you still see icons for applications like Dropbox?

muammar avatar Mar 31 '18 18:03 muammar

No tray for me too: v0.3.8.1, mac hight sierra

kocoai avatar Apr 01 '18 15:04 kocoai

Basically, I don't think using the tray icon for new code is a good idea. At least on the LInux side, both Fedora/Gnome3 and Ubuntu have been moving away from the tray icon/statusicon abstraction since long. Gnome3 has now dropped the legacy support for it, and Ubuntu will be using Gnome3 from now on. So, a perhaps better idea is to create a regular GUI app with the necessary controls.

And, on linux, add systemctl --user support to manage the service. But that's another story...

leamas avatar Apr 05 '18 20:04 leamas

@leamas you are right. I have just read that Gnome dropped the system tray. Creating a GUI makes lots of sense now. I have started something but my knowledge on UIs is limited so it will take some time for me. I have just logged in Gnome and I saw that Dropbox has a working icon but I suppose that is something rather complicated to do.

Now, this is more of a personal opinion:

Linux usually sucks when it comes to the desktop UX. Gnome used to be cool, and after 2011 I ditched it in favor of something more useful: a windows manager (awesome WM). I don't see the point why they dropped the system tray. I use Linux for my daily workflow, am Debian Developer, and pro Linux. But, Windows and macOS, regardless whether they suck as OS or not, still use a system tray. In addition, it is very well known, whether or not one agrees, that macOS UX is "good" or functional. And, they have a system tray. So why Gnome faced it out? No f.... idea... I am sure there will be an extension for having a system tray... that is so sad and one of the reasons why Linux has not become mainstream.

muammar avatar Apr 10 '18 01:04 muammar

https://www.omgubuntu.co.uk/2017/09/will-you-miss-gnome-legacy-tray

My gut reaction is the same as yours. That said, I've stick to using gnome3 and found that the designers has developed a really nice desktop over time. So, I somehow respect their judgment and I'm prepared to listen to them.

What about developing a regular gui app instead? A main window with all the bells and whistles mkchromecast needs? It could be minimized, and in that shape work more or less as a status icon. That's sort of the common denominator, I guess - it should work everywhere.

leamas avatar Apr 10 '18 05:04 leamas

What about developing a regular gui app instead? A main window with all the bells and whistles mkchromecast needs? It could be minimized, and in that shape work more or less as a status icon. That's sort of the common denominator, I guess - it should work everywhere.

I think the same. A window that does all these things, that's the way to go. As I mentioned, I started a GUI, but I am afraid that it will look very ugly at the beginning as I am too new to building these interfaces.

muammar avatar Apr 10 '18 14:04 muammar

Can you give us an update about this issue? Can we expect a solution anytime soon?

baselbers avatar Sep 16 '18 15:09 baselbers

This is also relevant for me. No tray icon But notifications are still present.

yerbestpal avatar Oct 06 '18 16:10 yerbestpal

I was having this problem too... but it's because I have a dark theme and the icon defaults to black.

screenshot from 2018-10-17 11-52-40

I found this out by randomly clicking on my status bar area and saw a drop down appear.

I fixed this by clicking on Preferences and changing the Icon color. I then had to quite mkchromecast and restart, and now I have the system tray icon:
screenshot from 2018-10-17 11-57-37

Hope this helps

localredhead avatar Oct 17 '18 15:10 localredhead

Thanks @localredhead, this was my issue as well, but now the icon is tiny. This is on Ubuntu 18.10 with Gnome 200% scaling (2560x1440 screen). But at least I can see it's there.

screenshot from 2018-12-01 14-36-54

dsego avatar Dec 01 '18 13:12 dsego

Something that integrates as a shell extension might make a ton of sense. I use this shell extension all the time to switch audio sinks https://extensions.gnome.org/extension/906/sound-output-device-chooser/ Not sure if there would be a way to integrate like this and punt the settings window development for later :)

ericpulvino avatar Dec 13 '18 21:12 ericpulvino

I posted a possible solution to this as #223

uniquePWD avatar Dec 13 '18 23:12 uniquePWD

@ericpulvino that sounds cool, but I have no idea how to do that. Have you ever created an extension for Gnome?

muammar avatar Dec 27 '18 20:12 muammar

i not have that icon, i clicked all over my top bar with Gnome 3.32/Arch

fabrixx avatar Apr 01 '19 21:04 fabrixx

i not have that icon, i clicked all over my top bar with Gnome 3.32/Arch

Do you have KStatusNotifierItem/Appindicator Support or Top Icons Plus installed?

uniquePWD avatar Apr 01 '19 22:04 uniquePWD

With TopIcons Redux & device choser addon i see icon and is more confortable that from terminal. i'm working to setup preferences to reduce delay

fabrixx avatar Apr 01 '19 22:04 fabrixx

/usr/share/mkchromecast/mkchromecast/systray.py

Delete or comment out line 169: self.ag = QtWidgets.QActionGroup(self, exclusive=True)

Maybe someone more aware in Python can tell me what this does, IDK enough about but I do know that after Python 5.14 'exclusive' is no longer part of the language. Regardless I'm still trying to figure out how to get it to pair now lol, when I search for streaming devices it doesn't find anything. Will keep updated.

Bewbman avatar Jan 24 '21 02:01 Bewbman

I'm still getting this issue on Fedora 34 (GNOME 40.4) as of de1ae31d84. All requirements.txt items installed correctly, I only had to install lame package manually.

$ pip list installed | grep -i pyqt5
PyQt5                      5.15.4
PyQt5-Qt5                  5.15.2
PyQt5-sip                  12.9.0
$ pip --version
pip 21.0.1 from /usr/lib/python3.9/site-packages/pip (python 3.9)

I'm using the AppIndicator and KStatusNotifierItem Support extension, also verified that there is no invisible tray icon. My tray icons for Dropbox, Slack and more are working normally.

Nindaleth avatar Oct 08 '21 09:10 Nindaleth

Well, my mistake, I expected the tray to pop up on its own after installing PyQt, but I had to provide the --tray switch. Sorry for a false alarm.

Now I'm getting an "invisible" tray icon just like other commenters are, see screenshot of hovered black icon on black background: image

EDIT: After reading the comments again and better, that thing is mostly resolved too by a manual config change. Maybe some kind of light/dark theme autodetection could be added to handle this?

Nindaleth avatar Oct 08 '21 13:10 Nindaleth

You can change the color of the icon in the preferences.

Best.

On Fri, Oct 8, 2021 at 09:19 Nindaleth @.***> wrote:

Well, my mistake, I expected the tray to pop up on its own after installing PyQt, but I had to provide the --tray switch. Sorry for a false alarm.

Now I'm getting an "invisible" tray icon, see screenshot of hovered black icon on black background: [image: image] https://user-images.githubusercontent.com/6383928/136563791-07f094e5-fe77-487e-9acf-56b5eb8c9f82.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/muammar/mkchromecast/issues/163#issuecomment-938637645, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHI6YNIERGNK6TI5LYSZUTUF3VXTANCNFSM4EXCBTGA .

-- Muammar El Khatib https://muammar.me

muammar avatar Oct 08 '21 20:10 muammar