teams-for-linux icon indicating copy to clipboard operation
teams-for-linux copied to clipboard

feature: option to hide show with a left click on the tray icon

Open draxil opened this issue 3 years ago • 5 comments

Is your feature request related to a problem? Please describe.

I usually only use the tray menu to hide and show teams. Currently a left or right click will get this same result, and I can find the hide and show there. Although in practice I'm more likely to use my window manager short-cuts as this is a bit cumbersome.

Describe the solution you'd like

With an option (probably) I'd like to make a left click on the tray icon click toggle teams visibility, instead of showing the menu.

Describe alternatives you've considered

There's plenty of alternatives, including just using the power of my window manager. This is simply a nice piece of potential polish. If there's some other alternative I'd be interested to hear it.

Additional context

I'd just say this is purely extra shine, really this isn't a burning need so I don't mind if this idea goes on the rubbish tip. However I do think this would be a pretty snazzy option, and would give a bit more power rather than left and right click having the same effect.

draxil avatar Sep 08 '22 11:09 draxil

@draxil Thanks for reporting. But unfortunately there's a dependency over electron framework. Tray icon events do not behave correctly. I guess it's difficult to implement. The electron bug here

jijojosephk avatar Sep 08 '22 11:09 jijojosephk

what follows is mentioned in that bug, but for the case some of us don't look there... at least in KDE this works if you get rid of libappindicator (libappindicator3-1:amd64 deb package in my debian derivative distribution)

kupiqu avatar Sep 11 '22 09:09 kupiqu

So it may not be easy unless the app detects the presence of libappindicator and act accordingly. Let's see.

jijojosephk avatar Sep 11 '22 11:09 jijojosephk

I have budgie and it does not have libappindicator3 but I see libayatana-appindicator3 are they related?

jijojosephk avatar Sep 11 '22 16:09 jijojosephk

from this, I understand that it is some sort of fork or different implementation of the same basic thing:

README

Ayatana Application Indicators (Shared Library)

A library to allow applications to export a menu into the an Application Indicators aware menu bar. Based on KSNI it also works in KDE and will fallback to generic Systray support if none of those are available.

This code project was originally started by Canonical Ltd. and has been adapted by various authors with the purpose of making this Application Indicators available on Ubuntu and non-Ubuntu systems alike.

kupiqu avatar Sep 11 '22 17:09 kupiqu

Closing due inactivity. Ping to reopen

IsmaelMartinez avatar Mar 22 '23 14:03 IsmaelMartinez

Hi, this would be a very nice improvement.

Here you can see how the Bitwarden Client do it:

https://github.com/bitwarden/clients/blob/35cc0da3cc5ea3d033f134c1b99c9be7835527d6/apps/desktop/src/main/tray.main.ts#L156

sonnatager avatar Aug 24 '23 10:08 sonnatager

@sonnatager it might be working for darwin and win but not for linux

jijojosephk avatar Aug 24 '23 15:08 jijojosephk

I have currently running the Bitwarden Client running on Fedora 36 and it is working fine. I don't understand, why it should not working for the teams-for-linux app as they both are Electron-Apps...

sonnatager avatar Sep 11 '23 10:09 sonnatager

Its probably using an older electron version. Hopefully electron does fix the underlying issue soon.

IsmaelMartinez avatar Sep 11 '23 20:09 IsmaelMartinez