The patch mentioned above is fine, but it won't "fix" the issue shown.spc wrote: Mon Dec 05, 2022 4:06 am It doesn't run from menu at all. When running from command line (sudo gufw) there is such information in terminal:
"System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: The device is turned off
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: The device is turned off"
/usr/bin/gufw: line 2: [: =: unary operator expected
ls: cannot access '/usr/lib/python*/site-packages/gufw/gufw.py': No such file or directory
and then the gufw window appears
(MX 21 64 bit with all updates)
To fix the systemd-warning and the site-packages warning do this:
fix gufw:
Code: Select all
sudo sed -i.orig -e '1!d;' -e 'apkexec gufw-pkexec $(whoami)' /usr/bin/gufw
fix gufw-pkexec
Code: Select all
sudo sed -i.orig -e '1!d;' -e 'a/usr/bin/python3 /usr/share/gufw/gufw/gufw.py $1' /usr/bin/gufw-pkexec