Gufw doesn't start

the output of konsole is:

gufw

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gtk-CRITICAL **: 16:52:29.808: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gtk-CRITICAL **: 16:52:29.808: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gtk-CRITICAL **: 16:52:29.808: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gtk-CRITICAL **: 16:52:29.808: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gtk-CRITICAL **: 16:52:29.808: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gtk-CRITICAL **: 16:52:29.808: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gtk-CRITICAL **: 16:52:29.808: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gtk-CRITICAL **: 16:52:29.808: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gtk-CRITICAL **: 16:52:29.808: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gdk-CRITICAL **: 16:52:29.808: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:16608): Gtk-CRITICAL **: 16:52:29.808: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:16608): Gtk-CRITICAL **: 16:52:29.809: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

(gufw.py:16608): Gtk-CRITICAL **: 16:52:29.809: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

(gufw.py:16608): Gtk-CRITICAL **: 16:52:29.809: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
/usr/sbin/gufw-pkexec: lĂ­nea 2: 16608 ViolaciĂłn de segmento  (`core' generado) python3 /usr/lib/python3.10/site-packages/gufw/gufw.py "$@"

the enviromment is manjaro stable in wayland, I have not tested on xorg yet

edit: xorg tested, it refuses to start too

Manjaro Unstable, xfce: in terminal typing (only)gufw at the prompt does not work and I get similar errors. It does work from the launcher in whisker menu. In terminal the following works here:

pkexec /usr/bin/gufw-pkexec
pkexec gufw-pkexec

Illo test n a moment.
The problem here is that the launcher contains basically gufw and nothing more so… XD
It has to be fixed in package

It sounds like both of you both are missing an authentication agent. Gufw contains a Pokit policy file, so running gufw alone will prompt for authentication.

it worked from terminal, but… where can I fill that bug? it’s not a good behaviour for a “supported” desktop and app from community

I mean the app should be launched without errors from Plasma/whisker/… launcher
And it’s not happening now… at least on my system…

when I launch gufw on launcher or on konsole it it’s the same. In both situations the pokint agent shows up and promp me with a password confirmation. I put it, click confirm/accept and nothing happens after, the error is the next thing that happens when I click on confirm

imagen
when I hit on gufw it shows up this. I put password and confirm but nothing happens…

This is happening to me as well, I successfully installed and ran gufw on manjaro mate weeks ago but had to format so I switched to kde plasma, same error only in english.

I just tried, I installed gufw and it works from the application launcher menu, or terminal executing directly the gufw command (in both case, it asks for my user password and opens).

KDE on Testing branch here.

What I can see is that the window you have in your image is not the window you’re supposed to have. Here is mine:

The command gufw contains this for info:

#!/bin/bash
c_user=$(whoami)
pkexec gufw-pkexec $c_user

It can be fixed with a workaround to launch from terminal with gufw command:

#!/bin/bash
#c_user=$(whoami)
#pkexec gufw-pkexec $c_user
pkexec /usr/bin/gufw-pkexec

Fixed for me, not sure about the original poster however.

@agm28011997 Unless you specifically want to use gufw on KDE Plasma, instead of using gufw you can download package plasma-firewall which integrates firewall config into system settings. The whole firewall kcm page will get a revamp in 5.25 for better rule maintenance.

Ufw and firewalld are supported with plasma-firewall.

Other DE are a different story.

1 Like

thanks, it worked and it’s much better than before with GUFW and I didn’t know this app

i know another workaround that I don’t remember, but, the problem here is that for many users are not working by default, and this is not " correct" for manjaro. Do you understand me?

there is no workaround yet, gufw is not launching…
I know there is another option but I feel like it should be fixed anyways