#Tray icon question/confusion

8 messages · Page 1 of 1 (latest)

jagged horizon
#

I read that there are limitations on libappindicator so that we can only show a context menu for the tray icon on linux (https://github.com/tauri-apps/tray-icon/issues/104)

I know a lot of apps can handle left and right click:

  • Nextcloud (Right: Context menu, Left: Tray popup)
  • Webcord, discord, keepass, signal ( Right: context menu, left: open app)

I'm wondering how they managed it if the tray components have no clue if I clicked left or right ?
Is there a way to open a custom window on click instead ?

GitHub

LeftClick RightClick DoubleClick Are not triggered on linux. I have found out that this is due to a limit in libappindicator used on linux. Is it possible to switch to another lib or to submit a fe...

solid arrow
#

i assume they simply didn't use libappindicator

#

there was some legacy gtk3 alternative but that was deprecated in gtk3 already and not part of gtk4. then there's the sni standard but that's a mess as well (we'll migrate to that anyway)

#

Is there a way to open a custom window on click instead ?
afaik nope, that would go via a click listener as well

jagged horizon
solid arrow
#

correct

#

or i guess you could try the tray-icon pr that tries to implement SNI support but not sure if that's in a working state