I’m having an issue with the GUFW Firewall on my new Manjaro KDE installation. When I start it and type in my password, it does nothing, just doesn’t start. When I tried typing “sudo gufw” into the terminal, I got this output:
“/usr/bin/gufw: line 2: [: =: unary operator expected”
Has _G_UFW not fixed itself?
It used to do some silly legacy stuff that didnt jive and you needed to manually augment for display source and polkit and such … is it still like that ?
(old forum has handful of my own posts on the subject directly)
I found that my firewall settings also don’t work. After clicking on the firewall settings application in manjaro Gnome, I am prompted to enter the password, but then nothing happens.
I tried to modify the file: / bin / gufw - I added the text:
gksudo python3 /usr/lib/python3.7/site-packages/gufw/gufw.py
This method does not work. Please, how to solve the problem? Thank you
It is an error with /usr/bin/gufw-pkexec file under certain languages. The following is a quick fix.
This time its the first line of the script we want to comment out and replace. The top 3 lines would become:
#!/bin/bash
#LOCATIONS=`ls -ld /usr/lib/python*/site-packages/gufw/gufw.py | awk '{print $9}'` # from source
LOCATIONS=`echo /usr/lib/python*/site-packages/gufw/gufw.py` # from cscs
dont do that.
The issue is with gufw and its terrible executable script.
To fix it we patched the package.
The idea is to make it work with polkit correctly … not bruteforce sudo on the GUI.
(which you shouldnt do)
It should already work from the regular package.
gufw
(gufw.py:66819): Gtk-WARNING **: 09:11:42.668: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version
(gufw.py:66819): Gtk-WARNING **: 09:11:42.668: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version
(gufw.py:66819): Gtk-WARNING **: 09:11:42.668: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/gufw/gufw.py", line 30, in <module>
gufw = Gufw(controler.get_frontend())
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/gufw.py", line 80, in __init__
self._set_initial_values()
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/gufw.py", line 283, in _set_initial_values
self.listening = ListeningReport(self)
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/listening.py", line 35, in __init__
self._show_report()
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/listening.py", line 48, in _show_report
self._view_report(report, self.previous_report)
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/listening.py", line 83, in _view_report
self.gufw.listening_model.set_value(iter_row, 1, int(line_split[1].strip())) # port
ValueError: invalid literal for int() with base 10: 'WARN:'