Closed WojtekWidomski closed 1 year ago
hey @WojtekWidomski , thank you for looking into this.
What is the purpose of the change, launch the GUI when the systray is not available?
@gustavo-iniguez-goya I don't want tray icon, but when OpenSnitch is added to startup applications and gnome-shell-extension-appindicator is disabled, OpenSnitch window shows on every login.
After this change it is possible to add opensnitch-ui --background
to startup applications.
Thank you @WojtekWidomski !
I'll rework it a little bit, but it improves what @munix9 solved with the lockfile and at the same time solved the problem of displying the GUI on demand when the systray is not available. Thank you both!
This PR adds
--background
command line argument that starts GUI in background even when tray not available and uses QLocalSocket and QLocalServer instead of lockfile (now it is possible to open window without starting new instance, using launcher in programs menu).Please review this code, because I never used Qt.
This will fix issue #940.