evilsocket / opensnitch

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

Send alerts via notification daemon #468

Closed noperator closed 2 years ago

noperator commented 3 years ago

I understand that OpenSnitch UI opens a connection prompt dialog window when it detects unknown connections. Could OpenSnitch also optionally send an alert via the system's notification daemon (i.e., through libnotify)?

I've got OpenSnitch UI windows assigned to a specific workspace, so this would help alert me to the fact that I need to approve an unknown connection, no matter which workspace I'm on.

gustavo-iniguez-goya commented 3 years ago

Hi @noperator ,

Do you use our systray icon? We already display alerts using qt, so we could use the same subsystem. Although by using libnotify we could display alerts even on systems that doesn't support systray icons (out of the box, like gnome), or the mobiles (purism)

We'll let customized alerts in future versions (like 1.5.x) to fulfill the demands #462

noperator commented 3 years ago

Admittedly, I don't use systray at all—I'm driving Debian 10 via i3 window manager, and don't have a fully fledged desktop environment installed.

Though I don't normally have systray enabled through i3bar, I just enabled it and don't see the systray icon mentioned in the wiki. I'll keep troubleshooting to see if that's a problem on my end. Will follow up if I figure it out.

Edit: Restarting opensnitch.service and opensnitch-ui caused the icon to appear in the i3bar systray.

noperator commented 3 years ago

Okay, I ended up configuring i3 to specifically assign the "statistics window" (titled OpenSnitch Network Statistics 1.4.0rc3) to a workspace of my choosing—which allows the pop-up connection prompt dialog (simply titled OpenSnitch v1.4.0rc3) to continue to float in my focused workspace.

So, no need for the systray icon or alerts through the notification daemon. @gustavo-iniguez-goya, thanks for your quick response here!

gustavo-iniguez-goya commented 2 years ago

Feature added in latest v1.5.0rc2 :+1: