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

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

    <bug>
          <bug_id>46014</bug_id>
          
          <creation_ts>2023-05-02 08:37:20 +0300</creation_ts>
          <short_desc>Установленный xdg-desktop-portal-gnome приводит к долгому запуску некоторых программ</short_desc>
          <delta_ts>2026-03-10 14:16:19 +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>xdg-desktop-portal-gnome</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Владимир Диденко">vladimir.didenko</reporter>
          <assigned_to name="Yuri N. Sedunov">aris</assigned_to>
          <cc>antohami</cc>
    
    <cc>aris</cc>
    
    <cc>shrek</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>225232</commentid>
    <comment_count>0</comment_count>
    <who name="Владимир Диденко">vladimir.didenko</who>
    <bug_when>2023-05-02 08:37:20 +0300</bug_when>
    <thetext>После последнего обновления xdg-desktop-portal-gnome запуск многих приложений (Firefox, eog, nautilus) не в Gnome (тестировал с Cinnamon и Mate) стал очень долгим, +10-15 секунд к обычному запуску. 

Если ничего не перепутал, то к этому привело следующее изменение

https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/merge_requests/78/diffs?commit_id=a1ded7ce1041672dbeacef62d5274f4bdc2f4cc9

а конкретно добавление в service файл строчек

After=graphical-session.target
Requisite=graphical-session.target
PartOf=graphical-session.target

Так если их убрать, то все начинает работать. Удаление пакета xdg-desktop-portal-gnome тоже решает проблему.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>225835</commentid>
    <comment_count>1</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2023-05-15 12:31:33 +0300</bug_when>
    <thetext>https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/issues/73</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>229111</commentid>
    <comment_count>2</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2023-07-06 18:12:01 +0300</bug_when>
    <thetext>(Ответ для Владимир Диденко на комментарий #0)
&gt; После последнего обновления xdg-desktop-portal-gnome запуск многих
&gt; приложений (Firefox, eog, nautilus) не в Gnome (тестировал с Cinnamon и
&gt; Mate) стал очень долгим, +10-15 секунд к обычному запуску. 
&gt; 
&gt; Если ничего не перепутал, то к этому привело следующее изменение
&gt; 
&gt; https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/merge_requests/78/
&gt; diffs?commit_id=a1ded7ce1041672dbeacef62d5274f4bdc2f4cc9
&gt; 
&gt; а конкретно добавление в service файл строчек
&gt; 
&gt; After=graphical-session.target
&gt; Requisite=graphical-session.target
&gt; PartOf=graphical-session.target
&gt; 

Удаление этих строчек не помогает на phosh. Помогает удаление пакета xdg-desktop-portal-gnome и файла /usr/share/xdg-desktop-portal/portals/gnome-shell.portal из пакета gnome-shell-data.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>229115</commentid>
    <comment_count>3</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2023-07-06 18:40:00 +0300</bug_when>
    <thetext>(Ответ для Антон Мидюков на комментарий #2)
&gt; Помогает удаление пакета
&gt; xdg-desktop-portal-gnome и файла
&gt; /usr/share/xdg-desktop-portal/portals/gnome-shell.portal из пакета
&gt; gnome-shell-data.

Но после этого на phosh не стартуют firefox, waydroid, gnome-control-center. На примере firefox:
firefox[43593]: This process is currently running setuid or setgid.
This is not a supported use of GTK+. You must create a helper
program instead. For further details, see:
http://www.gtk.org/setuid.html
                                                         
Refusing to initialize GTK+.
июл 06 15:10:47 localhost.localdomain phosh[43161]: Startup of app &apos;Mozilla Firefox&apos; with startup id: &apos;e9e4840bd4d4bca7a5ffe473a6a02589&apos; timed out

Из терминала стартуют.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>229116</commentid>
    <comment_count>4</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2023-07-06 18:45:13 +0300</bug_when>
    <thetext>А если взять из архива xdg-desktop-portal-gnome-43.1-alt1
?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>229140</commentid>
    <comment_count>5</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2023-07-07 08:30:53 +0300</bug_when>
    <thetext>(Ответ для Yuri N. Sedunov на комментарий #4)
&gt; А если взять из архива xdg-desktop-portal-gnome-43.1-alt1
&gt; ?

Решается проблема с долгим запуском приложений, которые стартуют с задержкой (chromium, gnome-clocks). xdg-desktop-portal-gnome.service работает. Но проблема не запуска firefox и других остаётся. Значит, это другая проблема.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>229191</commentid>
    <comment_count>6</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2023-07-07 14:51:10 +0300</bug_when>
    <thetext>(Ответ для Антон Мидюков на комментарий #5)
&gt; Но проблема не запуска firefox и других остаётся. Значит, это другая проблема.

Похоже другая.
https://gitlab.gnome.org/World/Phosh/phosh/-/issues/963

https://cliq.social/notes/9brm716wvu</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>230593</commentid>
    <comment_count>7</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2023-07-31 10:52:46 +0300</bug_when>
    <thetext>Проверьте, пожалуйста, xdg-desktop-portal-gnome-44.2-alt1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>230638</commentid>
    <comment_count>8</comment_count>
    <who name="Владимир Диденко">vladimir.didenko</who>
    <bug_when>2023-07-31 17:35:44 +0300</bug_when>
    <thetext>(In reply to Yuri N. Sedunov from comment #7)
&gt; Проверьте, пожалуйста, xdg-desktop-portal-gnome-44.2-alt1

Долгий запуск приложений остался :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>231538</commentid>
    <comment_count>9</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2023-08-16 15:49:01 +0300</bug_when>
    <thetext>https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/issues/94

Пора переходить на dbus-broker?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>231541</commentid>
    <comment_count>10</comment_count>
    <who name="Владимир Диденко">vladimir.didenko</who>
    <bug_when>2023-08-16 16:42:00 +0300</bug_when>
    <thetext>(In reply to Yuri N. Sedunov from comment #9)
&gt; https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/issues/94
&gt; 
&gt; Пора переходить на dbus-broker?

Кстати, да, чинит проблему.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>231551</commentid>
    <comment_count>11</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2023-08-16 17:58:31 +0300</bug_when>
    <thetext>(Ответ для Владимир Диденко на комментарий #10)
&gt; (In reply to Yuri N. Sedunov from comment #9)
&gt; &gt; https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/issues/94
&gt; &gt; 
&gt; &gt; Пора переходить на dbus-broker?
&gt; 
&gt; Кстати, да, чинит проблему.

Антон, и в phosh-сессии, кстати, firefox взлетел.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>231571</commentid>
    <comment_count>12</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2023-08-17 10:46:01 +0300</bug_when>
    <thetext>(Ответ для Yuri N. Sedunov на комментарий #11)
&gt; (Ответ для Владимир Диденко на комментарий #10)
&gt; &gt; (In reply to Yuri N. Sedunov from comment #9)
&gt; &gt; &gt; https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/issues/94
&gt; &gt; &gt; 
&gt; &gt; &gt; Пора переходить на dbus-broker?
&gt; &gt; 
&gt; &gt; Кстати, да, чинит проблему.
&gt; 
&gt; Антон, и в phosh-сессии, кстати, firefox взлетел.

Я сейчас собрал образ phosh без dbus-broker c xdg-desktop-portal-gnome. И всё работает. Даже установка gnome-shell ничего не поломала. Чудеса...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>283511</commentid>
    <comment_count>13</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2026-03-10 14:16:19 +0300</bug_when>
    <thetext>(Ответ для Антон Мидюков на комментарий #12)
&gt; (Ответ для Yuri N. Sedunov на комментарий #11)
&gt; &gt; (Ответ для Владимир Диденко на комментарий #10)
&gt; &gt; &gt; (In reply to Yuri N. Sedunov from comment #9)
&gt; &gt; &gt; &gt; https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/issues/94
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Пора переходить на dbus-broker?
&gt; &gt; &gt; 
&gt; &gt; &gt; Кстати, да, чинит проблему.
&gt; &gt; 
&gt; &gt; Антон, и в phosh-сессии, кстати, firefox взлетел.
&gt; 
&gt; Я сейчас собрал образ phosh без dbus-broker c xdg-desktop-portal-gnome. И
&gt; всё работает. Даже установка gnome-shell ничего не поломала. Чудеса...

С тех пор, вроде бы всё ок. Так что закрываю.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>