evilsocket / opensnitch

OpenSnitch is a GNU/Linux interactive application firewall inspired by Little Snitch.
GNU General Public License v3.0
9.87k stars 488 forks source link

Problem loading/opening opensnitch-ui #887

Closed vicxdev closed 1 year ago

vicxdev commented 1 year ago

Hi! I just finished the installation of opensnitch and after some troubleshooting, I found that opensnitch-ui doesn't open. These are my specs:

I ran the opensnitch-ui command to see if there is a problem, but it stays loading and never opens. Here a capture: image

Someone who can help me? Thanks

gustavo-iniguez-goya commented 1 year ago

Hi @vicxdev ,

I think you're having this issue: #647

Check if the process opensnitch-ui is consuming 100% of the CPU. Then try this solution: https://github.com/evilsocket/opensnitch/issues/647#issuecomment-1090545284

vicxdev commented 1 year ago

Hi @gustavo-iniguez-goya,

I've tried it but still the same. This is the consumption of opensnitch-ui:

image

gustavo-iniguez-goya commented 1 year ago

Is there an icon like this one in the system tray?

image

vicxdev commented 1 year ago

@gustavo-iniguez-goya There is no. When it's running, it's like it's running in the background.

gustavo-iniguez-goya commented 1 year ago

Ok, I think you're running GNOME, so could you install the appindicator extension? https://github.com/evilsocket/opensnitch/wiki/Known-problems#opensnitch-icon-does-not-show-up-on-gnome-shell

If the extension is not installed, the GUI should show up after ~10s of launching it. If the extension is installed only the icon should show up on the systray.

If you're still having the issue #647 + appindicator extension => the systray icon shows up, but it's grayed out (like disabled, no nodes connected). If you're still having the issue #647 + no appindicator extension => nothing shows up.

I think you're stuck on the last option. no appindicator + the issue 647. Please, install the extension and let me know if the icon shows up on the systray.

ItsDrike commented 1 year ago

Could you add a CLI option to start the GUI directly? I don't yet have system tray configured, because my bar has incomplete support for tray icons on wayland, and I don't see the icon in the tray. It would be neat if starting didn't require clicking on a tray icon.

I found that stopping my bar does solve this issue, and running opensnitch-ui does start the GUI after a few seconds. So clearly, there is some logic to allow starting the GUI directly, if the system tray isn't available. Since I'm using WIP version of the bar though, it seems that it does consume those system tray events, but doesn't display the icon due to lack of support.

This entire check could just be skipped and the UI can be started directly by adding an option like --start-maximized. This option could be useful to people with a system tray too in some cases too.

vicxdev commented 1 year ago

Ok, I think you're running GNOME, so could you install the appindicator extension? https://github.com/evilsocket/opensnitch/wiki/Known-problems#opensnitch-icon-does-not-show-up-on-gnome-shell

If the extension is not installed, the GUI should show up after ~10s of launching it. If the extension is installed only the icon should show up on the systray.

If you're still having the issue #647 + appindicator extension => the systray icon shows up, but it's grayed out (like disabled, no nodes connected). If you're still having the issue #647 + no appindicator extension => nothing shows up.

I think you're stuck on the last option. no appindicator + the issue 647. Please, install the extension and let me know if the icon shows up on the systray.

@gustavo-iniguez-goya I did it and it didn't work. I don't know why the window doesn't appear and the icon either. I have other apps on my bar that are showing up correctly, but not in the case of opensnitch.

gustavo-iniguez-goya commented 1 year ago

@ItsDrike what distro , WM and/or DE are you using?

@vicxdev :(

If the extension is not installed, the GUI should show up after ~10s of launching it.

If you kill/stop the GUI ($ killall opensnitch-ui) , does the GUI show up after 10s? Because if it doesn't show up, I'd bet that it's caused by the issue #647

gustavo-iniguez-goya commented 1 year ago

hey, any update on this issue?

vicxdev commented 1 year ago

Hi @gustavo-iniguez-goya. Sorry for the delay in answering.

None of the above tips managed to help me. Then I was facing some errors with the Ubuntu packages so I had to reinstall the system and having a fresh reset I took the opportunity to correctly install opensnitch and it worked.

Thanks anyway for your help!

gustavo-iniguez-goya commented 1 year ago

ok!