The latest two updates (1.6.8-2 and 1.6.8-2) has broken the GUI for me on GNOME (Wayland).
When I try to launch the application, I see this from journalctl -f
Apr 05 11:04:33 archlinux systemd[1465]: Started Application launched by gnome-shell.
Apr 05 11:04:33 archlinux python[5503]: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Apr 05 11:04:33 archlinux python[5503]: QSocketNotifier: Can only be used with threads started with QThread
Apr 05 11:04:33 archlinux python[5503]: qt.qpa.qgnomeplatform.theme: The desktop style for QtQuick Controls 2 applications is not available on the system (qqc2-desktop-style). The application may look broken.
Apr 05 11:04:34
I have QT_QPA_PLATFORM=wayland in /.config/environment.d/envvars.conf
Trying to run the UI from a terminal, coredumps:
$ QT_QPA_PLATFORM=wayland opensnitch-ui
~ OpenSnitch GUI - 1.6.8 ~
protobuf: 6.30.1 - grpc: 1.71.0
--------------------------------------------------
QT_AUTO_SCREEN_SCALE_FACTOR: True
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread
qt.qpa.qgnomeplatform.theme: The desktop style for QtQuick Controls 2 applications is not available on the system (qqc2-desktop-style). The application may look broken.
gRPC Max Message Length: None
Bytes: 4194304
is new file, or IN MEMORY, setting initial schema version
setting schema version to: 3
setting schema version to: 3
Setting journal_mode: OFF
Setting DB memory optimizations
schema version: 3
db schema is up to date
Loading translations: /usr/lib/python3.13/site-packages/opensnitch/utils/../i18n locale: en_US
using IPASN DB: /usr/lib/python3/dist-packages/data/ipasn_20140513_v12.dat.gz
exception loading ipasn db: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/data/ipasn_20140513_v12.dat.gz'
Install python3-pyasn to display IP's network name.
Using server address: unix:///tmp/osui.sock auth type: simple
Setting daemon DefaultAction to: deny
new node connected, listening for client responses... /local
[Nodes]: reply notification not in the list: 0
Segmentation fault (core dumped)
Is this the problem?
qt.qpa.qgnomeplatform.theme: The desktop style for QtQuick Controls 2 applications is not available on the system (qqc2-desktop-style). The application may look broken.
gRPC Max Message Length: None
The are outdated and no longer available in repos. They are in AUR with a higher version but
they are orphans and have not been updated for several months.
Opensnitch works for me on KDE / wayland.
Yesterdays update to opensnitchd -version 1.6.8.2 brought a) full integration of the ebpf module ( so no additional aur package required any longer) and b) issues with reduced “event” table
Thanks @Goyano! I have to check my other installations. I have some with KDE and some with GNOME. And yes seems to be a good update including that module that needed to be installed from AUR before, I think.
Just a pity that opensnitch is broken for me at the moment in that particular system that otherwise configured very much to my liking.
test it on your kde and see if you have the same issue. It could be an issue with your Gnome Wayland or it could be just a Gnome Wayland issue. God I hope that makes sense to you.
That could be very well the case as say. I never went further than the AUR page.
You are absolutely right about the removing them and cleaning up the configs. I can’t really recall by now when I installed them. I can do a bit of looking into the pacman.log.
In the other GNOME (Wayland) system, it works fine but the GUI is hurting my eyes whenever I switch to the workspace where it resides from the otherwise dark-themed DE. And I am no good at theming. I can live with it until it is relatively fully configured and the I can forget about it.
For the record, on KDE Plasma, it runs and looks great.
Do you have an extra User on your system? If not maybe create one and see if you have the theming issue on it. Could be the theme or a setting in the theme is corrupt. Not sure if you want to go through the trouble especially if the results are the same but it may help narrow down where the issue is.
qgnomeplatform used to be a way to get qt theming to match gnome better.
You can force qt applications to a dark theme in various ways.
But if you don’t want to deal with that, install python-qt-material and then you can set a dark theme in opensnitch’s settings. You will need to restart the GUI after installing python-qt-material
But with your words there are no rooms for doubt. Let’s summon PACMAN!
I would love to learn how to this but that may be the subject of another topic. For now I am more than pleased that it works.
I was even thinking to downgrade opensnitch to get it back to a working state but I discarded the idea. It would be a terrible to run such a “high profile” outdated.
@dalto, I purged the system from these packages and their dependencies and I got back opensnitch to a functional state. I haven’t been having any core dumps anymore.
However using qt-material and theming the app from within the application’s settings “breaks” the GUI for me. The app is still functional but under the Events tab I lose a few of the columns which I find providing important information . Please have a look!
Now the odd issue is that setting back the theme to system default will not bring back those columns. I guess it has to do with running a QT app on a GTK environment. I have to remove ~/.config/opensnitch and restart the app before I get back all the lost columns.
I removed qt-material too for good measure. By the way, in Arch repos, it’s python-qt-material.
Now the important thing is that OpenSnitch functions as it should and the rest is only about minor cosmetic annoyance. But annoyance nevertheless : )
I tried again with python-qt-material. Looks like choosing a new theme, unchecked some boxes in the UI settings for “EVENTS TAB COLUMNS” Checking the boxes again, I get back all the columns. The whole UI looks still a bit off with the white titlebar but much better than what it was before.