Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #415 and #284 #416

Closed
wants to merge 1 commit into from

Conversation

israelfaria
Copy link

@israelfaria israelfaria commented Aug 25, 2019

In your common class the methods build_paths() and load_settings() are very intertwined.
This results in the force_en-US setting to be ignored after extraction making it stuck on "Installing".
This approach reload the paths if this setting is found.
I'm not really happy with how the fix works but it does.

Hope it helps!

This should fix #415 and fix #284.

In your common class the methods build_paths() and load_settings() are very intertwined.
This results in the force_en-US setting to be ignored after extraction making it stuck on "Installing".
This approach reload the paths if this setting is found.
I'm not really happy with how the fix works but it does.

Hope it helps!
@yardenac
Copy link

yardenac commented Dec 2, 2020

Any chance of reviewing this? Thanks @micahflee

@kpcyrd
Copy link
Contributor

kpcyrd commented Dec 20, 2020

This PR needs a rebase because https://github.com/micahflee/torbrowser-launcher/pull/526/files changed a bunch of quotes from single- to double-quotes.

@@ -300,6 +296,11 @@ def load_settings(self):
if settings['tbl_version'] != self.tbl_version:
settings['tbl_version'] = self.tbl_version
resave = True

# we need to update paths if force english is set
Copy link

@real-or-random real-or-random Mar 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be moved before settings['installed'] = os.path.isfile(self.paths['tbb']['start']) a few lines above.

Otherwise the new path isn't used for the check. In my case, this results in TBB being downloaded and installed every time I run the launcher. The launcher finds that ~/.local/share/torbrowser/tbb/x86_64/tor-browser_de/start-tor-browser.desktop is not present but then installs /home/tim/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/start-tor-browser.desktop...

@kpcyrd
Copy link
Contributor

kpcyrd commented Jun 21, 2021

This PR got superseded by #585

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants