+
    Ki  c                   sj   R t ^ RIt^ RIt^ RIHt ^ RIt]P                  ! RR4       ]P                  ! RR4       ^ RIHt ^ RI	H
t
Ht ^ RIHt ^ R	IHt ^ R
IHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHtHt ^ RIHt ^ RIH t  ^ RI!H"t" ^ RI#H$t$ ^ RI%H&t& R t'RR lt(R t)R t*R t+R R lt,R t-R# )zCheck to run at program startN)gettextZGdkz3.0ZGtk)	GdkPixbuf)runnerssettings)	get_games)syncdb)Game)load_json_runners)DEFAULT_SERVICES)vkquery)get_gpu_cards)GPUGPUS)LINUX_SYSTEM)logger)build_path_cache)create_folder)REQUIRED_VULKAN_API_VERSIONc                 s   \         P                  \         P                  \         P                  \         P                  \         P
                  \         P                  \         P                  \         P                  \         P                  \         P                  \         P                  \         P                  \         P                  .p V  F  p\        V4       K  	  R# )zCreates Lutris directoriesN)r   Z
CONFIG_DIRZRUNNERS_CONFIG_DIRZGAME_CONFIG_DIRZDATA_DIRZ	ICON_PATHZBANNER_PATHZCOVERART_PATHZ
RUNNER_DIRZRUNTIME_DIRZ	CACHE_DIRZSHADER_CACHE_DIRZINSTALLER_CACHE_DIRZTMP_DIRr   )ZdirectoriesZ	directory     3/usr/lib/python3.14/site-packages/lutris/startup.py	init_dirsr      s     	##  !!$$K !	i  !    c           
     sP   \         P                  ! 4       pV '       d   \         P                  pM\         P                  pV Fa  p\	        \         P
                  4       FA  w  rEW,          V,           F)  p\        P                  ! RWVVP                  4       4       K+  	  KC  	  Kc  	  R# )z:Checks that required libraries are installed on the systemz%s %s missing (needed by %s)N)	r   Zget_missing_libsZrequirementsZcritical_requirementsZ	enumerateZruntime_architecturesr   errorZlower)Zall_componentsZmissing_libsZ
componentsZreqZindexZarchZlibs   &      r   
check_libsr   3   sw    002L!..
!77
$\%G%GHKE#(//;T		T 0 I r   c                 s   \         P                  P                  R4      '       d   R# \        P                  ! 4       '       g   \
        P                  ! R4       R# \        p \        P                  ! 4       pV'       dG   W8  dA   \
        P                  ! R\        P                  ! V4      \        P                  ! V 4      4       \        P                  ! 4       pV'       d   V^ ,          P                  V 8  df   \
        P                  ! RV^ ,          P                  \        P                  ! V^ ,          P                  4      \        P                  ! V 4      4       R# R# R# )z*Reports if Vulkan is enabled on the systemZLUTRIS_NO_VKQUERYNz;Vulkan is not available or your system isn't Vulkan capablezHVulkan reports an API version of %s. %s is required for the latest DXVK.z^Vulkan reports that the '%s' device has API version of %s. %s is required for the latest DXVK.)osZenvirongetr	   Zis_vulkan_supportedr   Zwarningr   Zget_vulkan_api_versionZformat_versionZget_device_infoZapi_versionname)Zrequired_api_versionZlibrary_api_versionZdevices      r   check_vulkanr   A   s    	zz~~)**&&((TU:%<<>#6#MNNZ&&':;&&';< ))+wqz--0DDNNp
&&wqz'='=>&&';<	 E7r   c                  s    . ROp \         P                  P                  4        Uu. uF  qP                  4       NK  	  ppV  F0  pW29  g   K  \        P
                  ! RVP                  4       4       K2  	  R# u upi )svgz%'%s' PixBuf support is not installed.N)r   ZpngZjpeg)r   ZPixbufZget_formatsZget_namer   r   Zupper)Zrequired_namesZfZformat_namesZrequireds       r   check_gnomer   \   s\    +N*3*:*:*F*F*HI*HQJJL*HLI"'LL@(..BRS # Js   A7c                 sj   \        R^/R7      p V  F  pVP                  R4      '       g   VR,          '       g   K+  \        VR,          R7      pVP                  4        VP                  '       g   Kb  \
        P                  ! RVP                  VP                  4       VP                  4        K  	  R# )	zISets the platform on games where it's missing.
This should never happen.
Z	installed)ZfiltersplatformZrunnerZid)Zgame_idzPlatform for %s set to %sN)	r   r   r   Zset_platform_from_runnerr   r   infor   Zsave_platform)Z	pga_gamesZpga_gameZgamer   r   fill_missing_platformsr!   d   s     ;"23I<<
##8H+=+=HTN+%%'===KK3TYYN  r   c                s    V ^8  d   QhRR/# )i   ZreturnN )Zformats   "r   __annotate__r#   s   s       r   c            	     s"   \        4        FN  p \        V 4      pVP                  4       p\        P                  ! RWVP                  R4      4       V\        V &   KP  	  \        4        \        4        \        4        \        4        \        4        R# )zRun all startup checksz"%s" is %s Driver %sZversionN)r
   r   Zget_driver_infor   r    r   r   r   r   r   r!   r   )ZcardZgpuZdriver_infor   r   run_all_checksr$   s   se    $i))+*D{y7QRT
	   LNMr   c                 s   \         P                  ! \        4       4       \        4         \	        4        \         F<  p\        P                  ! TRR7      '       d   K#  \        P                  ! TRRR7       K>  	  R#   \
        P                   d0   p \        \        R4      \        P                  ,          4      T hRp ? ii ; i)z!Run full initialization of LutriszNFailed to open database file in %s. Try renaming this file and relaunch LutrisNZservices)ZsectionT)r   Zinject_runnersr   r   r   sqlite3ZDatabaseErrorZRuntimeError_r   ZDB_PATHr   Zread_settingZwrite_setting)ZerrZservicer   r   init_lutrisr'      s    ,./K
 $$$WjAA""7D*E $	    ^_bjbrbrr
	s   
A< <C *B;;C )F).Z__doc__r   r%   r    r&   ZgiZrequire_versionZgi.repositoryr   Zlutrisr   r   Zlutris.database.gamesr   Zlutris.database.schemar   Zlutris.gamer   Zlutris.runners.jsonr   Zlutris.servicesr   Zlutris.util.graphicsr	   Zlutris.util.graphics.driversr
   Zlutris.util.graphics.gpur   r   Zlutris.util.linuxr   Zlutris.util.logr   Zlutris.util.path_cacher   Zlutris.util.systemr   Zlutris.util.wine.dxvkr   r   r   r   r   r!   r$   r'   r"   r   r   <module>r(      s    # 	    	   5%     5%   # $ + )  1 , ( 6 . * " 3 , =!*U6T!Fr   