+
     i  c                   s6    R t ^ RIt^ RIt^ RIt ! R R4      tR# )zFigure out the user.Nc                   s^   a  ] tR t^t o ]R 4       t]R 4       t]! 4       t]! ]4      tRt	V t
R# )	UserUtilsc                 s    \         P                  ! 4       #   \         d     Mi ; i \         P                  R,          p M&  \         d    \
        P                  ! 4       u # i ; iT R8X  d}    \         P                  R,          #   \         d     Mi ; i \        \         P                  R,          4      p\        P                  ! T4      P                  #   \         d     T # i ; iT # )z,Try to find the user who called sudo/pkexec.ZUSERZrootZ	SUDO_USERZ
PKEXEC_UID)osZgetloginZOSErrorZenvironZKeyErrorgetpassZgetuserZintpwdZgetpwuidZpw_name)userZ
pkexec_uids     7/usr/lib/python3.14/site-packages/inputremapper/user.pyget_userZUserUtils.get_user   s    	;;=  			%::f%D 	%??$$	% 6>zz+..  L!9:
||J/777 	 sA    %%A  A$#A$/B BB?C C'&C'c                sB    \         P                  ! V 4      P                  # )z&Try to find the user's home directory.)r   ZgetpwnamZpw_dir)r   s   &r   get_homeZUserUtils.get_home=   s     ||D!(((     N)Z__name__Z
__module__Z__qualname__Z__firstlineno__Zstaticmethodr   r   r   ZhomeZ__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r    r       s=      < ) ) :DD>Dr   r    )Z__doc__r   r   r   r    r	   r   r   <module>r
      s   *   	 
* *r   