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

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

    <bug>
          <bug_id>57686</bug_id>
          
          <creation_ts>2026-01-28 13:49:25 +0300</creation_ts>
          <short_desc>Dependency failed for xdg-desktop-portal.service</short_desc>
          <delta_ts>2026-01-28 23:56:14 +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>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=57638</see_also>
          <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="vozavozin">vozavozin</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>281014</commentid>
    <comment_count>0</comment_count>
    <who name="vozavozin">vozavozin</who>
    <bug_when>2026-01-28 13:49:25 +0300</bug_when>
    <thetext>xdg-desktop-portal падает в ошибку после логина через sddm в сессию Hyprland (wayland)

Порядок действий.
1. Старт сессии Hyprland через sddm.

Лог ошибки systemctl --user status xdg-desktop-portal.service

янв 28 13:21:07 workstation systemd[2595]: Starting xdg-desktop-portal.service - Portal service...
янв 28 13:21:07 workstation /usr/libexec/xdg-desktop-portal[4178]: Choosing gtk.portal for org.freedesktop.impl.portal.Lockdown as a last-resort &gt;
янв 28 13:21:07 workstation systemd[2595]: Started xdg-desktop-portal.service - Portal service.
янв 28 13:21:07 workstation /usr/libexec/xdg-desktop-portal[4178]: g_object_ref: assertion &apos;G_IS_OBJECT (object)&apos; failed
янв 28 13:21:09 workstation systemd[2595]: Stopping xdg-desktop-portal.service - Portal service...
янв 28 13:21:09 workstation systemd[2595]: Stopped xdg-desktop-portal.service - Portal service.
янв 28 13:21:31 workstation systemd[4414]: Dependency failed for xdg-desktop-portal.service - Portal service.
янв 28 13:21:31 workstation systemd[4414]: xdg-desktop-portal.service: Job xdg-desktop-portal.service/start failed with result &apos;dependency&apos;.


Версия пакета.
Name        : xdg-desktop-portal
Version     : 1.21.0
Release     : alt1
DistTag     : sisyphus+406153.200.1.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>281016</commentid>
    <comment_count>1</comment_count>
    <who name="vozavozin">vozavozin</who>
    <bug_when>2026-01-28 14:25:03 +0300</bug_when>
    <thetext>Дополнительные логи.

янв 28 13:21:28 workstation sddm-helper[4405]: pam_tcb(sddm:session): Session opened for user by (uid=0)
янв 28 13:21:28 workstation systemd-logind[963]: New session &apos;8&apos; of user &apos;user&apos; with class &apos;manager&apos; and type &apos;unspecified&apos;.
янв 28 13:21:31 workstation dbus-daemon[4452]: [session uid=1000 pid=4452 pidfd=5] Activating via systemd: service name=&apos;org.freedesktop.portal.Desktop&apos; unit=&apos;xdg-desktop-portal.service&apos; requested by &apos;:1.10&apos; (uid=1000 pid=4543 comm=&quot;kwalletd6&quot;)
янв 28 13:21:31 workstation systemd[4414]: graphical-session.target - Current graphical user session is inactive.
янв 28 13:21:31 workstation systemd[4414]: Dependency failed for xdg-desktop-portal.service - Portal service.
янв 28 13:21:31 workstation systemd[4414]: xdg-desktop-portal.service: Job xdg-desktop-portal.service/start failed with result &apos;dependency&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>281051</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2026-01-28 22:45:24 +0300</bug_when>
    <thetext>(Ответ для vozavozin на комментарий #0)
&gt; 1. Старт сессии Hyprland через sddm.

Аналогичная проблема и в сессии hyprland с gdm.

Мне пока помог workaround из https://bugzilla.altlinux.org/show_bug.cgi?id=57638#c2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>281053</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-01-28 23:16:24 +0300</bug_when>
    <thetext>xdg-desktop-portal-1:1.20.3-alt1 -&gt; sisyphus:

Wed Jan 28 2026 Yuri N. Sedunov &lt;aris@altlinux&gt; 1:1.20.3-alt1
- back to stable (ALT #57686)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>281054</commentid>
    <comment_count>4</comment_count>
    <who name="vozavozin">vozavozin</who>
    <bug_when>2026-01-28 23:56:14 +0300</bug_when>
    <thetext>Спасибо за помощь. Теперь все ясно, hypr не стартует graphical-session.target, а новый xdg-desktop-portal теперь его требует.

https://github.com/flatpak/xdg-desktop-portal/commit/4d284de29d1d0740c9b80b634631a8f253287680


Здесь написан ещё вариант решения.
https://github.com/hyprwm/Hyprland/issues/9342</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>