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

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

    <bug>
          <bug_id>59502</bug_id>
          
          <creation_ts>2026-06-11 09:53:25 +0300</creation_ts>
          <short_desc>xdg-desktop-portal не стартует по D-Bus в Hyprland из-за зависимости от graphical-session.target</short_desc>
          <delta_ts>2026-07-21 13:16:56 +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</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=57686</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>33000</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Илья Петров">is.petrov</reporter>
          <assigned_to name="Yuri N. Sedunov">aris</assigned_to>
          <cc>amakeenk</cc>
    
    <cc>antohami</cc>
    
    <cc>aris</cc>
    
    <cc>fiersik</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>289328</commentid>
    <comment_count>0</comment_count>
    <who name="Илья Петров">is.petrov</who>
    <bug_when>2026-06-11 09:53:25 +0300</bug_when>
    <thetext>Окружение:

    Дистрибутив: ALT Linux (указать ветку, например, Sisyphus или p11)
    WM: Hyprland
    Версии пакетов:
    rpm -q xdg-desktop-portal systemd glib2 hyprland
xdg-desktop-portal-1.22.0-alt1.x86_64
systemd-258.5-alt1.x86_64
glib2-2.88.1-alt1.x86_64
hyprland-0.54.3-alt1.x86_64

Описание проблемы:
После обновления системы приложения, полагающиеся на XDG Desktop Portal (например, telegram-desktop, waybar), не могут получить доступ к порталу. D-Bus запросы к org.freedesktop.portal.Desktop завершаются по таймауту, из-за чего приложения падают или зависают при старте.
Шаги для воспроизведения:

    Запустить сессию Hyprland.
    Запустить приложение, использующее портал (например, telegram-desktop).

Ожидаемое поведение:
xdg-desktop-portal.service успешно стартует по D-Bus активации, приложение получает доступ к FileChooser/Settings.
Фактическое поведение:
Приложение зависает на старте и выдает ошибки:
Failed to activate service &apos;org.freedesktop.portal.Desktop&apos;: timed out
Call to org.freedesktop.portal.Settings.ReadAll failed QDBusError(&quot;org.freedesktop.DBus.Error.NoReply&quot;...
В логах пользователя (journalctl --user -u xdg-desktop-portal.service):
Dependency failed for xdg-desktop-portal.service - Portal service.
xdg-desktop-portal.service: Job xdg-desktop-portal.service/start failed with result &apos;dependency&apos;.
Анализ причины (Root Cause):
Unit-файл /usr/lib/systemd/user/xdg-desktop-portal.service содержит жесткую зависимость:
Requisite=graphical-session.target
В окружении Hyprland (и других standalone Wayland-композиторах) graphical-session.target по умолчанию не стартует автоматически и находится в статусе inactive (dead), так как WM не вызывает его инициализацию. Из-за директивы Requisite= systemd прерывает D-Bus активацию портала, так как обязательная зависимость не выполнена. При этом сам бэкенд (xdg-desktop-portal-hyprland) запускается и работает корректно, если запустить его вручную из терминала.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>289332</commentid>
    <comment_count>1</comment_count>
    <who name="Илья Петров">is.petrov</who>
    <bug_when>2026-06-11 10:20:00 +0300</bug_when>
    <thetext>пофиксил благодаря https://bugzilla.altlinux.org/show_bug.cgi?id=57686
спасибо</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>289518</commentid>
    <comment_count>2</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2026-06-16 10:10:43 +0300</bug_when>
    <thetext>Из-за xdg-desktop-portal-1.22.0 во всех DE без graphical-session.target xdg-desktop-portal.service теперь не запускается.
Прошу вернуть xdg-desktop-portal.service к тому виду, что был в предыдущей версии.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>289531</commentid>
    <comment_count>3</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2026-06-16 11:14:02 +0300</bug_when>
    <thetext>https://github.com/flatpak/xdg-desktop-portal/issues/2028
https://github.com/flatpak/xdg-desktop-portal/issues/1983
https://github.com/flatpak/xdg-desktop-portal/pull/2027</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>289636</commentid>
    <comment_count>4</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2026-06-16 20:33:11 +0300</bug_when>
    <thetext>(Ответ для Yuri N. Sedunov на комментарий #3)
&gt; https://github.com/flatpak/xdg-desktop-portal/issues/2028
&gt; https://github.com/flatpak/xdg-desktop-portal/issues/1983
&gt; https://github.com/flatpak/xdg-desktop-portal/pull/2027

Значит пришло время для graphical-session.target. cinnamon пропатчил.
В других DE, прогресса не наблюдаю.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>289638</commentid>
    <comment_count>5</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2026-06-16 21:47:53 +0300</bug_when>
    <thetext>(Ответ для Антон Мидюков на комментарий #4)
&gt; 
&gt; Значит пришло время для graphical-session.target. cinnamon пропатчил.
&gt; В других DE, прогресса не наблюдаю.

Развесь &quot;на другие DE&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>291390</commentid>
    <comment_count>6</comment_count>
    <who name="Кирилл Уницаев">fiersik</who>
    <bug_when>2026-07-21 13:16:56 +0300</bug_when>
    <thetext>Забудьте про сервисы, это для DE 

exec-once = /usr/libexec/xdg-desktop-portal
exec-once = /usr/libexec/xdg-desktop-portal-hyprland</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>