tauri-apps / tray-icon

Tray icons for Desktop Applications.
Apache License 2.0
211 stars 29 forks source link

using gtk4? #107

Closed TornaxO7 closed 9 months ago

TornaxO7 commented 9 months ago

tray-icon is currently using gtk3. Would it be possible to bump to gtk4?

FabianLars commented 9 months ago

Hi, i really wish we could do it. The tray library is tauri's biggest gtk4 blocker afaik (except for the work of upgrading😅) but unfortunetely libappindicator, the linux tray library, requires gtk3 and won't update to gtk4 anytime soon (ref) especially considering that many distros still only use the "old" library (the one without ayatana in its name) which is basically unmaintained.

So i guess it's more likely we'll drop libappindicator for knsi or something at some point than using gtk4.

TornaxO7 commented 9 months ago

Damn it... may I ask if you know any alternatives to create system trays with rust?

FabianLars commented 9 months ago

There's a rust implementation for ksni here https://github.com/iovxw/ksni but i don't know how usable it is.

TornaxO7 commented 9 months ago

thank you for the information!

nazar-pc commented 1 month ago

Why not using https://github.com/iovxw/ksni on Linux then? Looks like a decent selection of supported specs and no GTK stuff in dependencies.

FabianLars commented 1 month ago

Well, that was the plan all the way back (iirc even before we moved out the tray implementation from tauri/tao into this crate) but we don't have time for this right now. We of course wouldn't turn down PRs in the meantime.

nazar-pc commented 1 month ago

Will experiment with it in our project and if it works well might send a PR your way, thanks!