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.

@pezglobo 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

until recently I have been using a program that another user advise me so Idk if gufw launchs or not. But Until recently little, like on july, it yet not launch so … may be another user can debug that because is not fixed?

There is nothing to fix as it works as intended. You have issue on your side, it is on you to debug your issue if you want it fixed. But I assume it is not even a problem of GUFW but a whole problem on your system.

it happened on both systems.
My manjaro testing and stable… both with plasma. I doubt I have a problem on my whole system since I have made a new user to test if the program launch.
The output of the commands are above and I’m not the only one who have the problem so… May be is not only my problem but the problem of many

jrichard326
minty_64
are some of surely many having the prblem

Still, it is up to those with the issue to find/report/work for resolution of the issue.

seems like he doesn’t anymore.

seems like it works from his menu, not his terminal

The inconsistencies here lead me to still believe the issue is not directly GUFW but as said, it is up to those with the issue to find what’s wrong.

Doesn’t seem to have an issue opened there for that issue you have.

Just installed Gufw on Plasma and although I use plasma-firewall and Gufw runs fine.
The only message I get on Wayland is the following, though it starts and runs normal:

gufw                                                                                                                      ✔ 
Could not determine the accessibility bus address