KTailctl icon indicating copy to clipboard operation
KTailctl copied to clipboard

Feature: Close button minimizes the app to tray when tray icon enabled

Open marouamghar opened this issue 1 year ago • 11 comments

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.

marouamghar avatar Nov 28 '24 17:11 marouamghar

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...

f-koehler avatar Nov 29 '24 02:11 f-koehler

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 avatar Dec 02 '24 17:12 marouamghar

@marouamghar, ok thanks for the info. Maybe there is some special behavior required on GNOME. I will look into it.

f-koehler avatar Dec 03 '24 01:12 f-koehler

@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?

f-koehler avatar Dec 03 '24 01:12 f-koehler

Tray Icons: Reloaded, if i am not mistaken. I also have Dash to Panel, which could have an impact too... maybe?

marouamghar avatar Dec 03 '24 02:12 marouamghar

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.

f-koehler avatar Dec 03 '24 03:12 f-koehler

@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)

f-koehler avatar Jan 14 '25 10:01 f-koehler

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.

marouamghar avatar Jan 14 '25 14:01 marouamghar

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

f-koehler avatar Jan 15 '25 03:01 f-koehler

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)

loukamb avatar Jan 22 '25 16:01 loukamb

@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.

marouamghar avatar Jan 22 '25 17:01 marouamghar

I can also reproduce this on PopOS 22.04 (which uses GNOME). I'm using the Flatpak version 0.21.2

MattDahEpic avatar Sep 30 '25 20:09 MattDahEpic

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.).

f-koehler avatar Oct 12 '25 08:10 f-koehler