]> git.lizzy.rs Git - torbrowser-launcher.git/commitdiff
using "uname -m" to get the architecture instead of "arch"
authorMicah Lee <micahflee@riseup.net>
Thu, 21 Feb 2013 17:51:31 +0000 (09:51 -0800)
committerMicah Lee <micahflee@riseup.net>
Thu, 21 Feb 2013 17:51:31 +0000 (09:51 -0800)
torbrowser-launcher

index c8372f9636c85f608682e354b7e4a58769dc5294..bf560a2949470997220748fa1ab1b0e73a980fde 100755 (executable)
@@ -58,7 +58,7 @@ class TorBrowserLauncher:
   # discover the architecture and language
   def discover_arch_lang(self):
     # figure out the architecture
-    self.architecture = subprocess.Popen(['arch'], stdout=subprocess.PIPE, stderr=None).stdout.read().strip('\n')
+    self.architecture = subprocess.Popen(['uname', '-m'], stdout=subprocess.PIPE, stderr=None).stdout.read().strip('\n')
 
     # figure out the language
     available_languages = ['en-US', 'ar', 'de', 'es-ES', 'fa', 'fr', 'it', 'ko', 'nl', 'pl', 'pt-PT', 'ru', 'vi', 'zh-CN']