mirror of
https://github.com/torproject/torbrowser-launcher.git
synced 2024-11-23 17:39:52 +00:00
stopped calling "uname -m" to get the architecture, and instead use python os.uname()
This commit is contained in:
parent
07a125d673
commit
058fbd8403
@ -71,7 +71,8 @@ class TorBrowserLauncher:
|
||||
# discover the architecture and language
|
||||
def discover_arch_lang(self):
|
||||
# figure out the architecture
|
||||
self.architecture = subprocess.Popen(['uname', '-m'], stdout=subprocess.PIPE, stderr=None).stdout.read().strip('\n')
|
||||
(sysname, nodename, release, version, machine) = os.uname()
|
||||
self.architecture = machine
|
||||
|
||||
# figure out the language
|
||||
available_languages = ['en-US', 'ar', 'de', 'es-ES', 'fa', 'fr', 'it', 'ko', 'nl', 'pl', 'pt-PT', 'ru', 'vi', 'zh-CN']
|
||||
|
Loading…
Reference in New Issue
Block a user