+
     Gi  c                   s    ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIt^ RI	t^ RI
t^ RIHt ^ RIt ! R R]P                  P                  4      tR tR tRR ltR	 tR
 tR tR# )i    N)services)GLibc                   sn   a  ] tR t^t o R t]P                  P                  RRRR7      R 4       tRt	V t
R# )DbusSessionManagerc                sr    W@n         Wn        \        P                  P                  P                  WV4       R # N)argslooperdbusserviceObject__init__)selfr   busZobject_pathr   s   &&&&&2/usr/lib/waydroid/tools/actions/session_manager.pyr	   ZDbusSessionManager.__init__   s&    	$$T<    zid.waydro.SessionManager )Zin_signatureZout_signaturec                s^    \        V P                  V P                  4       \        R R7       R# FZquit_sessionN)do_stopr   r   stop_container)r
      &r   StopZDbusSessionManager.Stop   s    		4;;'E*r   r   r   N)Z__name__Z
__module__Z__qualname__Z__firstlineno__r	   r   r   Zmethodr   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      s7     =
 
\\3"TVW+ X+r   r   c                 s4    \        W4       \        R R7       R# r   r   r   r      &&r   handle_disconnectr      s    D&r   c                 s   a a \         P                  ! 4       pVP                  R 4       VP                  V V3R lRRR7       \	        S\         P                  ! 4       RS 4      pSP                  4        R# )Fc                  s   < \        S S4      # r   )r   r   s   r   Z<lambda>Zservice.<locals>.<lambda>"   s    $5dF$Cr   ZDisconnectedzorg.freedesktop.DBus.Local)Zsignal_nameZdbus_interfacez/SessionManagerN)r   
SessionBusZset_exit_on_disconnectZadd_signal_receiverr   Zrun)r   r   r   Zdbus_objs   ff  r   r   r      s^    
//
Cu%C(6+G  I "&$//*;=NPTUH
JJLr   c                 s	  a a  \         P                  P                  R \         P                  ! 4       RR7      p\        P                  ! \        P                  P                  4      pTR,          pTR8X  g	   T'       g   \        P                  ! R4       R;qTR&   \        P                  P                  T4      '       d   TpMcTR	,          pTR8X  g	   T'       g-   \        P                  ! R
4       \         P"                  ! ^4       \        P                  P%                  Yu4      p\        P                  P'                  T4      '       g1   \        P                  ! RT R24       \         P"                  ! ^4       TR,          p\        P                  P)                  T4      '       g   \        P*                  ! T4       \        P,                  P.                  P1                  S R4      p	T	R8X  d9   \        P2                  ! R4      p	T	e   \5        \7        T	4      ^,          4      p	MRp	YR&   T'       d   RMRTR&   \8        P:                  ! 4       oT T3R lp
T T3R lp\8        P<                  ! \8        P>                  \@        PB                  T
R4       \8        P<                  ! \8        P>                  \@        PD                  T
R4       \8        P<                  ! \8        P>                  \@        PF                  T
R4       \8        P<                  ! \8        P>                  \@        PH                  TR4        \        P,                  PJ                  PM                  4       PO                  T4       \\        P^                  Pa                  S YA4       \\        Pb                  Pa                  S 4       \\        Pd                  Pa                  S T4       \        S S4       R#   \         P                  P
                   d*    \        P                  ! R4       T'       d   T! 4         R# i ; i  \         PP                   d   p\        PR                  ! T4       TPU                  4       PW                  R4      '       d;   \        P                  ! TPY                  4       P[                  4       R,          4       M\        P                  ! R4       \         P"                  ! ^ 4        Rp?ELtRp?ii ; i)zid.waydro.SessionT)Zdo_not_queuezSession is already runningNwayland_displayZNonez5WAYLAND_DISPLAY is not set, defaulting to "wayland-0"z	wayland-0xdg_runtime_dirzNXDG_RUNTIME_DIR is not set; please don't start a Waydroid session with 'sudo'!zWayland socket 'z6' doesn't exist; are you running a Wayland compositor?waydroid_datazro.sf.lcd_densityr   ZGRID_UNIT_PXZ0Zlcd_densityZtrueZfalseZbackground_startc                 s8   < \        SS4       \        R R7       R# r   r   Zdatar   mainloop   &r   sigint_handlerZstart.<locals>.sigint_handlerV   s    hE*r   c                 s    < \        SS4       R # r   )r   r   r   r   sigusr_handlerZstart.<locals>.sigusr_handlerZ   s    hr   zorg.freedesktop.DBus.Pythonz#WayDroid container is not listeningi)3r   r   ZBusNamer   Z
exceptionsZNameExistsExceptionloggingZerrorcopytoolsZconfigZsession_defaultsZwarningosZpathZisabssysZexitZjoinZexistsZisdirZmakedirshelpersZpropsZhost_getZgetenvZstrZintr   ZMainLoopZunix_signal_addZPRIORITY_HIGHsignalZSIGHUPZSIGINTZSIGTERMZSIGUSR1ipcDBusContainerServiceZStartDBusExceptionZdebugZget_dbus_nameZ
startswithZget_dbus_messageZ
splitlinesr    user_managerstartclipboard_managernotification_manager)r   Zunlocked_cbZ
backgroundZnameZsessionr   Zwayland_socket_pathr   r   Zdpir    r!   Zer   s   f&&          @r   r-   r-   (   sF   ||##$79JY]#^ ii556G /0O& OP7BB"34	ww}}_%%-!"34f$OMMjlHHQK ggll?L77>>-..()<(==stuO,M77==''
M"
--


&
&t-@
AC
byii'?c#hm$CC M,6&GG}}H+  	++V]]NDQ++V]]NDQ++V^^^TR++V^^^TR..066w? g;$$T*!!''g6D(G ??.. 23M	p  a??''(EFFMM!,,.99;B?@MM?@s0   5O 37P" <PPP"S#7B!SS#c                 s    \         P                  P                  V 4       \         P                  P                  V 4       \         P                  P                  V 4       VP                  4        R # r   )r    r,   stopr.   r/   Zquitr   r   r   r   r   p   sG    t$##D)!!&&t,
KKMr   c                 s     \         P                  P                  P                  4       P	                  4        R#   \
        P                   d    \        R R7        R# i ; i)Tr   N)r$   r'   r)   ZDBusSessionServicer   r   r+   r   )r   r   r   r0   r0   v   sF    *,,.335 *D))*s   6: !AAc                 s     \         P                  P                  P                  4       P	                  V 4       R #   \
        P                   d     R # i ; ir   )r$   r'   r)   r*   r   r   r+   r   r   r   r   r   |   s@    ..055lC s   7; AA)NT)r"   r%   r(   r&   Ztools.configr$   Ztools.helpers.ipcr    r   Zdbus.serviceZdbus.exceptionsZgi.repositoryr   r#   r   r   r   r   r-   r   r0   r   ) r   r   <module>r1      sa     	  
        	+,, 	+'FP*r   