当我尝试启动 gparted 时,它崩溃了并且在控制台上打印以下内容。有什么办法可以摆脱它吗?
提前致谢!
$ sudo gparted
Created symlink /run/systemd/system/-.mount → /dev/null.
Created symlink /run/systemd/system/boot-efi.mount → /dev/null.
Created symlink /run/systemd/system/home.mount → /dev/null.
Created symlink /run/systemd/system/media-supun-Data.mount → /dev/null.
Created symlink /run/systemd/system/run-user-1000.mount → /dev/null.
Created symlink /run/systemd/system/run-user-121.mount → /dev/null.
Created symlink /run/systemd/system/tmp.mount → /dev/null.
No protocol specified
(gpartedbin:5820): Gtk-WARNING **: cannot open display: :0
Removed /run/systemd/system/-.mount.
Removed /run/systemd/system/boot-efi.mount.
Removed /run/systemd/system/home.mount.
Removed /run/systemd/system/media-supun-Data.mount.
Removed /run/systemd/system/run-user-1000.mount.
Removed /run/systemd/system/run-user-121.mount.
Removed /run/systemd/system/tmp.mount.
答案1
是的,pomsky,你是对的!谢谢!
为什么 gksu/gksudo 或使用 sudo 启动图形应用程序不能与 Wayland 一起使用?
xhost si:localuser:root
sudo gparted
xhost -si:localuser:root