<?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-06-11 10:20:00 +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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Илья Петров">is.petrov</reporter>
          <assigned_to name="Yuri N. Sedunov">aris</assigned_to>
          <cc>amakeenk</cc>
    
    <cc>aris</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>
      
      

    </bug>

</bugzilla>