+
    Kix  c                   s:    R t ^ RIHtHt ^ RIHt  ! R R4      tR# )zSteam game library watcher)GioGLib)loggerc                   s4   a  ] tR t^t o RtRR ltR tRtV tR# )SteamWatcherz1Watches a Steam library folder and notify changesNc                s   . V n         W n        V F  p\        P                  P	                  V4      p VP                  \        P                  P                  4      p\        P                  ! R V4       VP                  RV P                  4       V P                   P                  V4       K  	  R#   \        P                   d#   p\        P                  ! RY64        Rp?K  Rp?ii ; i)zWatching Steam folder %sZchangedz%Failed to monitor Steam folder %s: %sN)monitorscallbackr    ZFileZnew_for_pathZmonitor_directoryZFileMonitorFlagsZNONEr   ZdebugZconnect_on_directory_changedZappendr   ZErrorZ	exception)selfZsteamapps_pathsr   Z
steam_pathpathZmonitorZexs   &&&    >/usr/lib/python3.14/site-packages/lutris/util/steam/watcher.py__init__ZSteamWatcher.__init__   s     )J88((4DZ001E1E1J1JK7D	4+E+EF$$W- * :: Z  !H*YYZs   A7B00C'C""C'c                s    VP                  4       pVe   VP                  R4      '       g   R # V P                  '       d   V P                  WE4       R # R # )Nz.acf)Zget_pathZendswithr   )r   Z_monitorZ_fileZ_other_fileZ
event_typer   s   &&&&& r	   r   Z"SteamWatcher._on_directory_changed   s>    ~~<t}}V44===MM*+     )r   r   )N)	Z__name__Z
__module__Z__qualname__Z__firstlineno____doc__r
   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r	   r   r      s     ;Z, ,r   r   N)r   Zgi.repositoryr    r   Zlutris.util.logr   r   ) r   r	   <module>r      s      $ #, ,r   