L5P-Keyboard-RGB icon indicating copy to clipboard operation
L5P-Keyboard-RGB copied to clipboard

Arch Linux - GUI; Closing app window does not exit program

Open Howarddj opened this issue 1 year ago • 5 comments

When using the GUI on arch linux, everything works perfectly except for closing the app. if i close the app using the X in the top right hand corner it closes the window but leaves the app running in the background, which prevents me from reopening the app again until i restart the machine, stating the " another instance is already running" using the "exit" tab in the GUI closes the app correctly and allows me to reopen it again.

is this something that can be fixed?

Howarddj avatar May 13 '24 09:05 Howarddj

This is intended behavior to keep the program running in the background without a GUI window. You should have an icon on your tray to close the program if needed.

In the case that anything goes wrong while creating the tray icon the program is coded to instead just close as normal once you press on the "X" in the window.

Worst case scenario though, why not just kill the process instead of restarting your whole machine?

4JX avatar May 13 '24 11:05 4JX

ah, that make sense. i guess because gnome doesn't normally support system tray icons there is something going wrong with creating one, even though i am using an extension to bring back the system tray to gnome. either way it isn't a major issue as i can just use the exit tab to close the app with no issues. thank you for the quick response and clarification, much appreciated.

Howarddj avatar May 13 '24 18:05 Howarddj

i guess because gnome doesn't normally support system tray icons there is something going wrong with creating one, even though i am using an extension to bring back the system tray to gnome.

Which one?

I guess it's only kind-of-failing but not enough for the program to realize and switch behaviors. I could switch back to a GTK based implementation as it was better behaved, but that adds quite the list of deps for something so "unrelated".

4JX avatar May 13 '24 19:05 4JX

https://extensions.gnome.org/extension/2890/tray-icons-reloaded/

I'm using tray icons : reloaded. I can always try another extension though

Howarddj avatar May 13 '24 19:05 Howarddj

Hello, can you test if it works with https://github.com/4JX/L5P-Keyboard-RGB/actions/runs/10948820367 and "AppIndicator and KStatusNotifier..." as the tray icon extension? Seems to do the trick over here

image

4JX avatar Sep 19 '24 21:09 4JX

Will assume fixed by https://github.com/4JX/L5P-Keyboard-RGB/releases/tag/v0.20.0

4JX avatar Jan 02 '25 22:01 4JX

Works perfectly, many thanks.

Howarddj avatar Jan 05 '25 12:01 Howarddj