[Pkg-privacy-commits] [torbrowser-launcher] 04/476: detected language and architecture

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:21:17 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository torbrowser-launcher.

commit 20fc0898533efcf7eb8c9e9bb79b912f63745cc6
Author: Micah Lee <micahflee at riseup.net>
Date:   Wed Feb 6 21:28:50 2013 -0800

    detected language and architecture
---
 torbrowser-launcher | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/torbrowser-launcher b/torbrowser-launcher
index 8d36ebe..e2fe460 100755
--- a/torbrowser-launcher
+++ b/torbrowser-launcher
@@ -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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbrowser-launcher.git



More information about the Pkg-privacy-commits mailing list