Bug 35409 - gparted не запускается на wayland
Summary: gparted не запускается на wayland
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: gparted (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Yuri N. Sedunov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks: 33000
  Show dependency tree
 
Reported: 2018-09-18 13:28 MSK by Антон Мидюков
Modified: 2019-04-17 16:13 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Антон Мидюков 2018-09-18 13:28:06 MSK
gparted не запускается на wayland:

$ gparted
Too few arguments.
No protocol specified

(gpartedbin:4483): Gtk-WARNING **: 09:24:26.602: cannot open display: :0
--runtime cannot be used with unmask

Помогает:
xhost +
Comment 1 Антон Мидюков 2018-09-23 08:56:07 MSK
Необходимо собирать с --enable-xhost-root

--- a/gparted.spec
+++ b/gparted.spec
@@ -82,7 +82,8 @@ subst 's/pkexec --version/pkaction --version/' configure*
 %configure %{subst_with pic} \
 	%{?_enable_usermode:--bindir=%_sbindir} \
 	--enable-libparted-dmraid \
-	--enable-online-resize
+	--enable-online-resize \
+	--enable-xhost-root
 %make_build
 bzip2 --best --keep --force ChangeLog

Это костыль, но похоже, что по-другому пока никак.
Comment 2 Yuri N. Sedunov 2018-09-23 09:11:22 MSK
Костылей не хватит расставить во все места. Надо разбираться почему polkit/pkexec перестал работать под wayland.
Comment 3 Michael Shigorin 2018-09-24 13:47:28 MSK
Раз уж в данном разе есть -- давай включим, хорошо бы, чтоб пакет работал во всех регулярках...
Comment 4 Антон Мидюков 2019-04-17 15:30:47 MSK
Сами разработчики рекомендуют (смотреть README):
   If you wish to build GParted to allow it to use xhost to grant root
   access to the X11 server use the --enable-xhost-root flag.  This is
   required to allow GParted to display under Wayland.
      ./configure --enable-xhost-root

Так что прошу собрать с этим флагом.

Я так понимаю, что с каких-то пор стало нельзя повышать просто так привилегии с помощью polkit для приложений, требующих xwayland. Судя по последним коммитам в апстриме, сейчас идёт портирование на gtk3, и в новой версии этот флаг будет уже не нужен.
Comment 5 Repository Robot 2019-04-17 16:13:39 MSK
gparted-0.33.0-alt2 -> sisyphus:

Wed Apr 17 2019 Yuri N. Sedunov <aris@altlinux> 0.33.0-alt2
- rebuilt with --enable-xhost-root (ALT #35409)