diff -Nru gparted-1.3.1/debian/changelog gparted-1.3.1/debian/changelog
--- gparted-1.3.1/debian/changelog	2023-02-08 09:56:20.000000000 +0800
+++ gparted-1.3.1/debian/changelog	2023-02-08 16:47:36.000000000 +0800
@@ -1,3 +1,9 @@
+gparted (1.3.1-ok3) yangtze; urgency=medium
+
+  * Fix compatibility for wayland environment.
+
+ -- zhouganqing <zhouganqing@kylinos.cn>  Wed, 08 Feb 2023 16:47:36 +0800
+
 gparted (1.3.1-ok2) yangtze; urgency=medium
 
   * No-change rebuild.
diff -Nru gparted-1.3.1/debian/rules gparted-1.3.1/debian/rules
--- gparted-1.3.1/debian/rules	2023-02-08 09:56:20.000000000 +0800
+++ gparted-1.3.1/debian/rules	2023-02-08 16:47:36.000000000 +0800
@@ -12,7 +12,7 @@
 	dh_autoreconf --as-needed
 
 override_dh_auto_configure:
-	dh_auto_configure -- --enable-libparted-dmraid --bindir=\$${prefix}/sbin
+	dh_auto_configure -- --enable-libparted-dmraid --enable-xhost-root --bindir=\$${prefix}/sbin
 
 override_dh_install:
 	dh_install