]> git.lizzy.rs Git - torbrowser-launcher.git/commitdiff
detected language and architecture
authorMicah Lee <micahflee@riseup.net>
Thu, 7 Feb 2013 05:28:50 +0000 (21:28 -0800)
committerMicah Lee <micahflee@riseup.net>
Thu, 7 Feb 2013 05:28:50 +0000 (21:28 -0800)
torbrowser-launcher

index 8d36ebe416bba9f620134210a0f2c679358e5fd8..e2fe460c6e95bc4e352d749d49a8dd3ee2702cfd 100755 (executable)
@@ -1,5 +1,9 @@
 #!/usr/bin/env python
 
+import os
+import locale
+import subprocess
+
 import pygtk
 pygtk.require('2.0')
 import gtk
@@ -48,6 +52,10 @@ class Base:
     gtk.main()
 
 if __name__ == "__main__":
+  # figure out the language and architecture
+  language = locale.getdefaultlocale()[0].split('_')[0]
+  architecture = subprocess.check_output(['arch']).strip('\n')
+
   # todo: is TBB already installed?
   # if yes, launch it
   # if no, show first run dialog