<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>35409</bug_id>
          
          <creation_ts>2018-09-18 13:28:06 +0300</creation_ts>
          <short_desc>gparted не запускается на wayland</short_desc>
          <delta_ts>2019-04-17 16:13:39 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gparted</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>33000</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Антон Мидюков">antohami</reporter>
          <assigned_to name="Yuri N. Sedunov">aris</assigned_to>
          <cc>aris</cc>
    
    <cc>mike</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>174255</commentid>
    <comment_count>0</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2018-09-18 13:28:06 +0300</bug_when>
    <thetext>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 +</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>174427</commentid>
    <comment_count>1</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2018-09-23 08:56:07 +0300</bug_when>
    <thetext>Необходимо собирать с --enable-xhost-root

--- a/gparted.spec
+++ b/gparted.spec
@@ -82,7 +82,8 @@ subst &apos;s/pkexec --version/pkaction --version/&apos; 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

Это костыль, но похоже, что по-другому пока никак.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>174428</commentid>
    <comment_count>2</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2018-09-23 09:11:22 +0300</bug_when>
    <thetext>Костылей не хватит расставить во все места. Надо разбираться почему polkit/pkexec перестал работать под wayland.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>174442</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2018-09-24 13:47:28 +0300</bug_when>
    <thetext>Раз уж в данном разе есть -- давай включим, хорошо бы, чтоб пакет работал во всех регулярках...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>180905</commentid>
    <comment_count>4</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2019-04-17 15:30:47 +0300</bug_when>
    <thetext>Сами разработчики рекомендуют (смотреть 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, и в новой версии этот флаг будет уже не нужен.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>180908</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2019-04-17 16:13:39 +0300</bug_when>
    <thetext>gparted-0.33.0-alt2 -&gt; sisyphus:

Wed Apr 17 2019 Yuri N. Sedunov &lt;aris@altlinux&gt; 0.33.0-alt2
- rebuilt with --enable-xhost-root (ALT #35409)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>