- Display the column Node only if there's more than 1 node, or if the
user selected it from the Preferences (rel: #1456).
- Adjust the Rules panels default sizes.
- Don't resize the first column of the rules left panel.
Previously you could only change firewall policies of one node.
Now if there's more than one node you can select the node, or change the
policies of all nodes.
Appimages unpack their content under /tmp/._mount<random-chars>/*.
Usually the random part consist of 6 characters, but some appimages do
not follow this rule, like the Eden appimage.
See: #1377.
In the same way that we automatically select AppImages paths, now we'll
also select snap paths.
Usually these paths start with /snap, followed by the name of the app, a
revision number and the path to the executable:
/snap/firefox/12345/usr/lib/firefox/firefox
Internally the rule will create this regular expression, to match the
the snap regardless of the revision:
^\/snap\/firefox\/[0-9]+\/usr\/lib\/firefox\/firefox$
Closes: #1439.
Added a basic plugin to check latest release version on github. Disabled
by default.
Since it's not possible to enable plugins from the GUI yet, you have to
copy the configuration to
$HOME/.config/opensnitch/actions/versionchecker.json:
{
"name": "versionchecker",
"created": "",
"updated": "",
"description": "",
"type": ["global"],
"actions": {
"versionchecker": {
"enabled": true,
"config": {
"check_on_start": false,
"name": "check-latest-release",
"interval": "12",
"units": "hours",
"url": "https://api.github.com/repos/evilsocket/opensnitch/releases"
}
}
}
}
This configuration example is available under
opensnitch/plugins/versionchecker/.
Requested here: #1461.
now you can open multiple rules editor dialogs from the rules list.
Right click on the rules list to edit the selected rule, then right
click on another rule to edit a new rule.
When editing a rule from the detailed view (after double clicking on a
rule), it'll only allow to open one dialog.
Closes#1455.
This change modifies the StatsDialog class to use the show() method instead of overriding showEvent(). This resolves a recursion error.
Changes made:
- Replaced the showEvent() method override with a show() method
- Maintained the same functionality including:
- Emitting the _shown_trigger signal
- Setting window state to active and unminimized
- Updating the window title with version information
- Removed the event parameter since show() doesn't receive event arguments
- Preserved all existing logic for address checking and window title formatting
Co-authored-by: Gustavo Iñiguez Goia <gooffy1@gmail.com>
This change fixes an issue where the statistics dialog would not properly restore its maximized state when reopening. The previous implementation attempted to manually set the window geometry to simulate a maximized state, but this approach was unreliable and didn't properly handle screen boundaries or multi-monitor setups.
The fix replaces the manual geometry setting with a proper call to showMaximized() when the dialog is visible, ensuring that Qt's window management correctly handles the maximized state restoration. This provides consistent behavior across different platforms and display configurations.
Changes made:
- Removed the manual geometry calculation that attempted to simulate maximized state
- Added proper isVisible() check before calling showMaximized() to ensure the window is properly initialized
- Simplified the maximized state restoration logic to use Qt's built-in functionality
For now we won't detect it automatically, because we're using
QtCore.QLocale.system().name() to detect the language. This function
usually returns the language and country (en_UK, ...), but this
translation is not tied to any specific country (ar).
It can be configured manually from the Preferences, UI tab.
With PyQt5 we used plupdate5 + *.pro file to update the translations
file with new strings, extracted from the source code and UI forms.
In PyQt6, pylupdate6 doesn't support parsing .pro files, so we need to do it
manually.
Debian's QtDesigner 6.8.2 defines horizontal/vertical spacers as
Qt::Orientation::Horizontal, but the Qt definitions since 6.5 is
Qt::Horizontal: https://doc.qt.io/qt-6.5/qt.html#Orientation-enum
Due to this problem, the GUI fails to load on some Qt versions, like
6.6.x (Mint 22.1). It doesn't fail on Arch with PyQt6 6.9 though.
Discussion: #1222
unicode-slugify is basically abandoned upstream. Its repository [1] has seen
the last actual code change in 2018. It uses the deprecated `nose` testing framework.
In nixpkgs, we patched it to use pytest, but made some mistakes in those patches,
resulting in no tests actually executing. I actually fixed the tests to run,
but most of the tests fail: unicode does not reliably get replaced with a slugified version.
There does exist an actual need for slugification. However, the used slugify
package should actually work and be reasonably maintained. The replacement proposed here is
`python-slugify` [2], which sees active development in its repository while the
used API (both import name and the basic function signature `slugify(str)`) is identical.
The version requirement of >=7.0.0 is from their official support matrix for py >= 3.7,
though i did my testing with python-slugify 8.0.4.
[1] https://github.com/mozilla/unicode-slugify
[2] https://pypi.org/project/python-slugify/
This should simplify the search for the lrelease binary:
lrelease - Debian/Ubuntu (?)
lrelease6 - openSUSE
lrelease-qt6 - Fedora
In addition, you can specify the path to an lrelease binary with LRELEASE, e.g.:
export LRELEASE="/usr/local/bin/my-lrelease-v6"
The GUI has been ported to PyQt6.
New dependencies:
- python3-pyqt6
- python3-pyqt6.qtsvg (otherwise, the svg icons are not loaded)
On Arch and other systems qt6-svg is neeeded.
- pyqt6-dev-tools (for uic calls, .ui loading).
- libqt6sql6
Known issues:
- pylupdate6 not longer update .pro files.
It doesn't affect existing translations.
- There might be a delay closing the GUI. Reason still unknown.
Closes: #1009
Discussion: #1222
When the daemon connects to the GUI, the firewall dialog is configured
based on the system firewall configuration (inbound/outbpund policies).
Due to an error, a fw-change notification was being triggered, causing
unnecessary firewall rules reloads.
Allow to use commas to specify multiple data:
- src/dst ip: 1.2.3.4, 5.6.7.8
- dst host: www.a-b-c.org, www.abcd.org
- proto: tcp, udp
- net ifaces: eth0, eth1
- src/dst port: 123, 456
The data will be translated to ^(..|..|..)$ when saving the rule, and
back to "..,..,.." when loading it.
Closes: #1392.
Previously when cloning a rule, we added "clone-{num}-" to the rule.
Depending on the number of rules, the cloned rule might not appear next
to the original.
Now we append "-duplicated-{num}" to the end of the rule name, on the one
hand to make the new rule appear close to the cloned one, and on the other
hand, to be consistent with the menu item that triggers this action.
Closes: #1363.