Feature: Close button minimizes the app to tray when tray icon enabled
When having tray icon enabled, I would like to have an option to close to tray. That way, I can still have the tray and closing the ui would just minimize it to tray, giving me more space on the apps bar.
Thanks for the report @marouamghar!
May I ask what desktop you are using and how you installed KTailctl? On my machine with the KDE Plasma desktop the close button behaves exactly as your desired behavior, so I need some info to reproduce this...
It's fedora, gnome. I could have sworn it was like that, but I started reusing that distro last week, and got confused by the app behaving this way.
@marouamghar, ok thanks for the info. Maybe there is some special behavior required on GNOME. I will look into it.
@marouamghar I think GNOME does not have a tray area by default, especially on Fedora where it is pretty much vanilla. Which extension do you use to provide a tray area?
Tray Icons: Reloaded, if i am not mistaken. I also have Dash to Panel, which could have an impact too... maybe?
Tray Icons: Reloaded, if i am not mistaken. I also have Dash to Panel, which could have an impact too... maybe?
Thanks, this might help me to reproduce your situation more accurately.
@marouamghar, I just tried to reproduce this on Fedora 41 with Gnome 47. Unfortunately, I did not see any tray icons with the Tray Icons Reloaded extensions. I tried KTailctl, Telegram, and Nextcloud Client with both Dash to dock enabled and disabled. Could it be that this extension is broken for Gnome 46+? (saw this issue in their repo: https://github.com/martinpl/tray-icons-reloaded/issues/143)
I am still on Fedora 40, gnome 46. I didn't upgrade yet because last year I had a similar issue with an extension taking its time to work... I should have precised that earlier.
No worries, let me try with Fedora 40 then. But in the issue I referenced above, problems with Gnome 46 are mentioned as well. On the few occasions I have worked with Gnome I always used this extension instead: https://github.com/ubuntu/gnome-shell-extension-appindicator
Using the AppIndicator/KStatusNotifierItem extension, closing the application despite having the tray icon enabled will entirely shutdown KTailctl on Gnome 47. I always have to relaunch the application afterwards to have it persist in the tray. This is not happening with other applications making use of the tray (e.g. megasync)
@f-koehler you know what, I also have that appindicator installed ! I have multiple ones, so I missed it. Precisely, it's AppIndicator and KStatusNotifierItem Support.
I can also reproduce this on PopOS 22.04 (which uses GNOME). I'm using the Flatpak version 0.21.2
I looked into this issue, was facing the same problem on Sway. Should be fixed with #454, will try to release v0.21.3 today. Feel free to reopen if it still does not work on Gnome (cannot test on Gnome easily atm.).