Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hi again, I found a solution that works for me. So I post here to help any other user facing the same issue. The problem I encountered happened because xfce4-settings-manager is trying to run under Wayland, but it is built to work with X11. The error suggests a compatibility issue between GTK, X11, and Wayland. I use hyprland.
- So the solution that works for me was to run xfce4-settings-manager using XWayland, which is a compatibility layer for running X11 apps in Wayland, with:
- GDK_BACKEND=x11 xfce4-settings-manager
- This command forces xfce4-settings-manager to use Xwayland (terminal).
- -To run xfce4-settings-manager under XWayland without needing to use the terminal each time,
- 1.Create a wrapper script:
- sudo nano /usr/local/bin/xfce4-settings-manager-wrapper (global)
- (or local to: ~/.local/bin)
- (make sure the directory is in your $PATH).
- -Add the following lines to the script:
- #!/bin/bash
- GDK_BACKEND=x11 xfce4-settings-manager
- -Make the script executable:
- sudo chmod +x /usr/local/bin/xfce4-settings-manager-wrapper
- 2.Modify the .desktop File to Use the Wrapper Script
- sudo nano /usr/share/applications/xfce4-settings-manager.desktop
- -Change the Exec line to point to your wrapper script:
- Exec=/usr/local/bin/xfce4-settings-manager-wrapper
- 3.run the xfce4-settings-manager-wrapper from hyprland menu
- ---------------------------------------------
- Then, another problem I had, was that I couldn’t run the firewall configuration (Gufw) from inside xfce4-settings-manager-wrapper. With the errors:
- (gufw.py:6742): Gdk-CRITICAL **: 12:11:52.759: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed .
- (gufw.py:6742): Gdk-CRITICAL **: 12:11:52.759: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed .
- (gufw.py:6742): Gtk-CRITICAL **: 12:11:52.760: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed /usr/bin/gufw-pkexec: line 2: 6742 Segmentation fault (core dumped) python3 /usr/lib/python3.12/site-packages/gufw/gufw.py "$@"
- So, what I found is that, gufw crashing due to Gdk and Gtk errors, is likely due to incompatibility with Wayland. Gufw has stability issues under Wayland and generally functions better under X11.
- The solution I found, is to run gufw with xhost to grant temporary display access.
- 1.Create a Wrapper Script:
- sudo nano /usr/local/bin/gufw-wrapper
- 2.Add the following lines to the script:
- #!/bin/bash
- # Grant root access to display
- xhost +SI:localuser:root
- # Run Gufw with X11 backend using sudo
- GDK_BACKEND=x11 sudo gufw
- # Revoke display access for root after closing Gufw
- xhost -SI:localuser:root
- 3.Make the script executable:
- sudo chmod +x /usr/local/bin/gufw-wrapper
- -if you want to run it from menu edit:
- sudo nano /usr/share/applications/gufw.desktop
- with:
- Exec=/usr/local/bin/gufw-wrapper
- -I prefer to run ti from the terminal, so I can see messages. The output I take is:
- localuser:root being added to access control list
- localuser:root being removed from access control list
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement