+
    Ki  c                   s    ^ RI t ^ RIHt ^ RIHtHtHt ^ RIHtH	t	H
t
 ^ RIHt ^ RIHt RtRt ! R	 R
]
P"                  4      tR# )    N)gettext)CallableIterableOptional)GioGLibGObject)schedule_at_idle)loggerzorg.freedesktop.portal.Desktopz/org/freedesktop/portal/desktopc                   s   a a ] tR t^t oRtRt]. R3,          t]].R3,          t	RV3R lV 3R lllt
R tR tR tV3R lR	 ltR
 tRtVtV ;t# )TrashPortalzorg.freedesktop.portal.TrashNc                s\   < V ^8  d   QhRS[ S[,          RS[S[,          RS[S[,          /# )   
file_pathscompletion_functionerror_function)r   Zstrr   CompletionFunctionErrorFunctionZformat__classdict__   "8/usr/lib/python3.14/site-packages/lutris/util/portals.py__annotate__TrashPortal.__annotate__   s8     
 
SM
 &&89
 !/	
    c           
     s@  < \         SV `  4        \        V4      V n        W n        W0n        \        P                  P                  \        P                  P                  \        P                  P                  R \        \        V P                  R V P                   4       R # N)Zsuper__init__Zlistr   r   r   r   Z	DBusProxyZnew_for_busZBusTypeZSESSIONZDBusProxyFlagsNONEPORTAL_BUS_NAMEPORTAL_OBJECT_PATHportal_interface_new_for_bus_cb)selfr   r   r   	__class__s   &&&&r   r   ZTrashPortal.__init__   st     	z*#6 ,!!KK##!!  		
r   c                sh    VP                  V4      pV'       d   W0n        V P                  4        R # R # r   )Znew_for_bus_finish_dbus_proxy
trash_file)r   objresultZproxys   &&& r   r   ZTrashPortal._new_for_bus_cb*   s*    &&v.$OO r   c           	     s    \         P                  P                  4       pV P                   F  p\        P
                  \        P                  ,          \        P                  ,          p\        P                  P                  V4      '       d   V\        P                  ,          p\        P                  ! W#4      pVP                  V4       K  	  V P                  P                  R \        P                   P#                  \        P                   P%                  ^ 4      4      \         P&                  P(                  \*        P,                  VRV P.                  4       R#   \0         d   pT P3                  T4        Rp?R# Rp?ii ; i)Z	TrashFileN)r   Z
UnixFDListZnewr   osZO_RDONLYZO_PATHZ	O_CLOEXECZpathZislinkZ
O_NOFOLLOWZopenZappendr!   Zcall_with_unix_fd_listr   ZVariantZ	new_tupleZ
new_handleZDBusCallFlagsr   r   ZG_MAXINT_call_cb	Exceptionreport_error)r   Zfds_inZ	file_pathZflagsZfile_handleZexs   &     r   r"   ZTrashPortal.trash_file0   s   	"^^'')F!__	bii/",,> 77>>),,R]]*E ggi7k* - 33&&LL++A. !!&&  
  	"b!!	"s   EE F(E??Fc                s   VP                  V4      pV'       d   V^ ,          pV^ 8X  d   \        V P                  4      ^8X  d%   \        R4      V P                  ^ ,          ,          pM+\        R4      RP	                  V P                  4      ,          pV P                  \        V4      4       R# V P                  4        R# )r    zJ'%s' could not be moved to the trash. You will need to delete it yourself.zTThe items could not be moved to the trash. You will need to delete them yourself:
%sZ
N)Zcall_finishZlenr   _joinr(   ZRuntimeErrorreport_completion)r   r#   r$   ZvaluesZmessages   &&&  r   r&   ZTrashPortal._call_cbL   s    (AYF{t'1,fg//!,- 
  o		$//23G !!,w"78 r   c                s$   < V ^8  d   QhRS[ RR/# )r   errorZreturnN)r'   r   r   r   r   r   ^   s     Z Z) Z Zr   c                s    V P                   '       d   \        V P                   V4       R# \        P                  ! R RP	                  V P
                  4      V4       R# )zFailed to trash %s: %sz, N)r   r   r	   Z	exceptionr*   r   )r   r,   s   &&r   r(   ZTrashPortal.report_error^   s?    T00%85tyy7QSXYr   c                sX    V P                   '       d   \        V P                   4       R # R # r   )r   r   )r   s   &r   r+   ZTrashPortal.report_completiond   s!    ###T556 $r   )r!   r   r   r   )NN)Z__name__Z
__module__Z__qualname__Z__firstlineno__r   r!   r   r   r'   r   r   r   r"   r&   r(   r+   Z__static_attributes__Z__classdictcell__Z__classcell__)r    r   s   @@r   r
   r
      s_     5K!"d(+i[$./M
 
*"8!$Z Z7 7r   r
   )r%   r   r)   Ztypingr   r   r   Zgi.repositoryr   r   r   Zlutris.util.jobsr   Zlutris.util.logr	   r   r   ZObjectr
   ) r   r   <module>r-      s:    	   / / , , - "26 X7'.. X7r   