运行 Wayland 上的 GParted(带 sudo)

Running GParted (with sudo) on Wayland

我想在 Ubuntu Artful (17.10) 上使用 GParted,它是 运行ning Gnome on Wayland。当我启动 GParted 时,我收到 gksu 提示以输入我的密码,但随后没有任何反应。

当我通过 gksudo gparted 从命令行启动 GParted 时,我看到了可能的问题:

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

当我在 XOrg Gnome 会话中 运行 GParted 时一切正常。

我明白了。我需要允许 root 在桌面上显示应用程序。为此,我必须将其输入命令行

xhost +SI:localuser:root

在这里找到解决方案gparted-forum.surf4.info and here ask.fedoraproject.org