Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
torbrowser-launcher
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
torbrowser-launcher
Commits
7472ff6b
Unverified
Commit
7472ff6b
authored
2 years ago
by
Micah Lee
Browse files
Options
Downloads
Patches
Plain Diff
Return early in torbrowser_12_rename_old_tbb() if the TBB path does not exist yet
parent
52f7be32
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
torbrowser_launcher/common.py
+2
-0
2 additions, 0 deletions
torbrowser_launcher/common.py
with
2 additions
and
0 deletions
torbrowser_launcher/common.py
+
2
−
0
View file @
7472ff6b
...
...
@@ -177,6 +177,8 @@ class Common(object):
# Tor Browser 12.0 no longer has locales. If an old TBB folder exists with locals, rename it to just tor_browser
def
torbrowser12_rename_old_tbb
(
self
):
if
not
os
.
path
.
exists
(
self
.
paths
[
"
tbb
"
][
"
dir
"
]):
return
for
filename
in
os
.
listdir
(
self
.
paths
[
"
tbb
"
][
"
dir
"
]):
abs_filename
=
os
.
path
.
join
(
self
.
paths
[
"
tbb
"
][
"
dir
"
],
filename
)
if
filename
.
startswith
(
"
tor-browser_
"
)
and
os
.
path
.
isdir
(
abs_filename
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment