How to open gparted in fedora 25 (wayland): Gtk-WARNING **: cannot open display: :0

Today’s task list involved installing Fedora 25 (yay!) on my new computer and reformatting some hard drives to use as backup disks. The install was fine however I couldn’t seem to get gparted started (poet / know it). Gparted is the tool I find most useful for dealing with hard drives, partitions etc, but apparently it doesn’t work as usual now we have the wayland desktop. I don’t really know why this has happened and really think it should not have been allowed to happen, gparted is an important and useful tool… Anyway, a useful post by mfleetwo on the gparted forum got me sorted.

The error I had was:

Gtk-WARNING **: cannot open display: :0

 

mfleet2 said:

Workarounds:

Use one of the following workarounds:

1) Do not use Wayland. Instead select either “GNOME” or “GNOME Classic” at the login screen.

2) Allow all local users to display applications on your desktop. Before running GParted type the following into a terminal window:
xhost +local:

I went for option two and it worked great!

2 thoughts on “How to open gparted in fedora 25 (wayland): Gtk-WARNING **: cannot open display: :0

Leave a Reply

Your email address will not be published. Required fields are marked *