Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.69.130.95
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
LanguageSelector /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
ImConfig.py
1.69
KB
-rw-r--r--
LangCache.py
6.06
KB
-rw-r--r--
LanguageSelector.py
4.17
KB
-rw-r--r--
LocaleInfo.py
12.56
KB
-rw-r--r--
__init__.py
3
B
-rw-r--r--
macros.py
5.27
KB
-rw-r--r--
utils.py
1.63
KB
-rw-r--r--
xkb.py
3.25
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ImConfig.py
# ImConfig.py (c) 2012-2020 Canonical # Author: Gunnar Hjalmarsson <gunnarhj@ubuntu.com> # # Released under the GPL # import os import subprocess import locale class ImConfig(object): def __init__(self): pass def available(self): return os.path.exists('/usr/bin/im-config') def getAvailableInputMethods(self): inputMethods = sorted(subprocess.check_output(['im-config', '-l']).decode().split()) inputMethods.append('none') return inputMethods def getCurrentInputMethod(self): (systemConfig, userConfig, autoConfig) = \ subprocess.check_output(['im-config', '-m']).decode().split()[:3] if userConfig != 'missing': return userConfig """ no saved user configuration fall back to the system configuration """ system_conf = '' if systemConfig == 'default': system_conf = autoConfig elif os.path.exists('/etc/X11/xinit/xinputrc'): for line in open('/etc/X11/xinit/xinputrc'): if line.startswith('run_im'): system_conf = line.split()[1] break if not system_conf: system_conf = autoConfig return system_conf def setInputMethod(self, im): subprocess.call(['im-config', '-n', im]) if __name__ == '__main__': im = ImConfig() print('available input methods: %s' % im.getAvailableInputMethods()) print('current method: %s' % im.getCurrentInputMethod()) print("setting method 'fcitx'") im.setInputMethod('fcitx') print('current method: %s' % im.getCurrentInputMethod()) print('removing ~/.xinputrc') im.setInputMethod('REMOVE')
Close