From 058fbd84039040529ac94bf3fc65271d02aba440 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Thu, 21 Feb 2013 10:50:07 -0800 Subject: [PATCH] stopped calling "uname -m" to get the architecture, and instead use python os.uname() --- torbrowser-launcher | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/torbrowser-launcher b/torbrowser-launcher index 99312aa..d113e3e 100755 --- a/torbrowser-launcher +++ b/torbrowser-launcher @@ -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']