[Pkg-privacy-maintainers] Bug#983198: torbrowser-launcher: launcher does not detect torbrowser as installed on non-EN user session
Marcelo Soares Mota
motasmarcelo at gmail.com
Sun Feb 21 00:14:12 GMT 2021
Package: torbrowser-launcher
Version: 0.3.3-3
Severity: normal
Tags: patch
X-Debbugs-Cc: motasmarcelo at gmail.com
Package: torbrowser-launcher
Version: 0.3.3-3
Severity: normal
Tags: patch
Dear Maintainer,
I believe i found an issue with the launcher (somehow related with #842021)
It happens that though the launcher works it doesn't detect torbrowser
as installed. It causes two issues:
- The 'Settings' window points status as Not Installed;
- The 'Browser launcher' keeps running the routines to download and
verify the 'first installation'.
I realized that reload the settings after rebuilding paths makes the
launcher works as expected.
Plus, load_settings() is not checking changes at 'installed' directive
to rewrite the settings file ('settings.json').
Regards,
Marcelo S Mota
-------------- next part --------------
Description: fix failure in detect installed torbrowser
Author: Marcelo Soares Mota <motasmarcelo at gmail.com>
Last-Update: 2021-02-20
--- torbrowser-launcher-0.3.3.orig/torbrowser_launcher/common.py
+++ torbrowser-launcher-0.3.3/torbrowser_launcher/common.py
@@ -64,6 +64,7 @@ class Common(object):
self.load_mirrors()
self.load_settings()
self.build_paths()
+ self.load_settings()
self.mkdir(self.paths["download_dir"])
self.mkdir(self.paths["tbb"]["dir"])
self.init_gnupg()
@@ -371,7 +372,10 @@ class Common(object):
resave = False
# detect installed
- settings["installed"] = os.path.isfile(self.paths["tbb"]["start"])
+ installed = os.path.isfile(self.paths["tbb"]["start"])
+ if settings["installed"] != installed:
+ settings["installed"] = installed
+ resave = True
# make sure settings file is up-to-date
for setting in default_settings:
More information about the Pkg-privacy-maintainers
mailing list