]> git.lizzy.rs Git - torbrowser-launcher.git/commitdiff
Merge pull request #537 from FliegendeWurst/patch-1
authorMicah Lee <micah@micahflee.com>
Fri, 18 Jun 2021 21:45:16 +0000 (17:45 -0400)
committerGitHub <noreply@github.com>
Fri, 18 Jun 2021 21:45:16 +0000 (17:45 -0400)
Do not require the home directory to be writable

1  2 
torbrowser_launcher/common.py

index 757f4a124f4d4c5dc5c316b1e3def4f6c96e513a,77fd4cef6624094be401a050e98f1cc27533506c..55f11ee3eb20680962efbdf60fa0c5b9228da4ca
@@@ -76,36 -76,25 +76,36 @@@ class Common(object)
          available_languages = [
              "ar",
              "ca",
 +            "cs",
              "da",
              "de",
 +            "el",
              "en-US",
 +            "es-AR",
              "es-ES",
              "fa",
              "fr",
              "ga-IE",
              "he",
 +            "hu",
              "id",
              "is",
              "it",
              "ja",
 +            "ka",
              "ko",
 +            "lt",
 +            "mk",
 +            "ms",
 +            "my",
              "nb-NO",
              "nl",
              "pl",
              "pt-BR",
 +            "ro",
              "ru",
              "sv-SE",
 +            "th",
              "tr",
              "vi",
              "zh-CN",
                      self.set_gui(
                          "error", _("Error creating {0}").format(homedir), [], False
                      )
-         if not os.access(homedir, os.W_OK):
-             self.set_gui("error", _("{0} is not writable").format(homedir), [], False)
  
          tbb_config = '{0}/torbrowser'.format(self.get_env('XDG_CONFIG_HOME', '{0}/.config'.format(homedir)))
          tbb_cache = '{0}/torbrowser'.format(self.get_env('XDG_CACHE_HOME', '{0}/.cache'.format(homedir)))