GUFW keymap error

gufw
firewall
ufw

#1

I am using Openbox 18.0 Minimal. While trying to launch gufw, I am receiving this error:

~ >>> gufw                                                                                                           
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gtk-CRITICAL **: 20:50:20.252: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gtk-CRITICAL **: 20:50:20.252: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gtk-CRITICAL **: 20:50:20.252: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gtk-CRITICAL **: 20:50:20.252: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gtk-CRITICAL **: 20:50:20.252: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gtk-CRITICAL **: 20:50:20.252: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gtk-CRITICAL **: 20:50:20.252: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gtk-CRITICAL **: 20:50:20.252: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gtk-CRITICAL **: 20:50:20.252: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:2286): Gdk-CRITICAL **: 20:50:20.252: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:2286): Gtk-CRITICAL **: 20:50:20.252: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
/usr/sbin/gufw-pkexec: line 13:  2286 Segmentation fault      (core dumped) python3 ${LOCATIONS[${i}]} $1

I was wondering if someone can help me with this. ufw seems to work fine, just gufw is having issues. When I try to launch gufw, I type in my sudo password, and no GUI pops up.


#2

This was covered a couple of times



The logic applies to your case too in spite the use of Openbox.


#3

The problem is clearly located as the last lines

/usr/sbin/gufw-pkexec: line 13: 25247 Segmentation fault      (core dumped) python3 ${LOCATIONS[${i}]} $1

I have been thinking about a lot of ways to get a python app to run with pkexec but it is not that easy because it is the actual python interpreter in the actual system which is executing the files - not the app itself. In this case gufw.

This gives developers some headaches - on that I am sure.


#4

I hope you mean despite the use of Openbox :laughing:


#5

Hahahaha … in fact should be in spite … made the correction. Thanks for pointing that out :wink: