grub-customizer not work on wayland

Bug #1645224 reported by Vascom
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Grub Customizer
New
Undecided
Unassigned
grub-customizer (Fedora)
Won't Fix
Undecided

Bug Description

grub-customizer does not work with Wayland:

[vitaliy@Vitaliy-PC ~]$ sudo grub-customizer
Unable to init server: Could not connect: Connection refused

(grub-customizer:5277): Gtk-WARNING **: cannot open display: :0

Using Fedora 25 Workstation with Wayland default. No any problem on Gnome with Xorg Server.

Please, fix grub-customizer for Wayland.

Revision history for this message
Daniel Richter (danielrichter2007) wrote :

I used a virtual machine to try (downloaded and installed Fedora 25). It was worked well with grub customizer (with sudo and also with pkexec [used when not running with sudo]). I checked the session type on login screen. It's the first option: "GNOME". The other options are "GNOME Classic" and "Gnome with xorg). I also tried to unistall X11 completely but then the login screen didn't come up anymore, so I'm not sure there's no fallback to X11.

Anyway... grub customizer isn't doing anything X11 specific. It's just GTK (3) based. So if gtk runs good, then gc should do that too. What about other gtk based applications? Is gedit working well with sudo? Or nautilus?

Revision history for this message
Jeremy Banks (jeremyb54) wrote :

Hi,

I'm seeing the same problem. While running sudo grub-customizer or sudo gedit or sudo nautilus all results in the same error, the Gtk-WARNING **: cannot open display: :0, it looks like it's related to how the application attempts to get root access. More information about the issue:
https://fedoraproject.org/wiki/Common_F25_bugs#wayland-root-apps
and
https://bugzilla.redhat.com/show_bug.cgi?id=1274451

Revision history for this message
Vascom (vascom2) wrote :

Thanks.

Revision history for this message
Strangiato Xanadu (strangiato) wrote :

grub customizer is unusable under Wayland on Arch linux too.
Implement Wayland support please.

Gavin Taylor (gavtaylor)
description: updated
Revision history for this message
Gavin Taylor (gavtaylor) wrote :

the following workaround listed on https://fedoraproject.org/wiki/Common_F27_bugs#wayland-root-apps worked for me:

There is a workaround you can use to allow non-Wayland-native apps to run as root if you absolutely must: from a console as the regular user, run xhost +si:localuser:root.

affects: fedora → grub-customizer (Fedora)
Changed in grub-customizer (Fedora):
importance: Unknown → Undecided
status: Unknown → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.