Fixed desktop/scripts/get-tor.py and desktop/onionshare/widgets.py for linux64

This commit is contained in:
NoisyCoil 2022-12-31 13:39:42 +01:00
parent 16cdb588a8
commit d536595283
2 changed files with 6 additions and 6 deletions

View File

@ -71,10 +71,10 @@ class AddFileDialog(QtWidgets.QFileDialog):
self.common = common
self.common.log("AddFileDialog", "__init__")
self.setOption(self.DontUseNativeDialog, True)
self.setOption(self.ReadOnly, True)
self.setOption(self.ShowDirsOnly, False)
self.setFileMode(self.ExistingFiles)
self.setOption(self.Option.DontUseNativeDialog, True)
self.setOption(self.Option.ReadOnly, True)
self.setOption(self.Option.ShowDirsOnly, False)
self.setFileMode(self.FileMode.ExistingFiles)
tree_view = self.findChild(QtWidgets.QTreeView)
tree_view.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)
list_view = self.findChild(QtWidgets.QListView, "listView")

View File

@ -216,12 +216,12 @@ def get_tor_linux64():
sys.exit(-1)
# Delete extracted tarball, if it's there
shutil.rmtree(os.path.join(working_path, "tor-browser_en-US"), ignore_errors=True)
shutil.rmtree(os.path.join(working_path, "tor-browser"), ignore_errors=True)
# Extract the tarball
subprocess.call(["tar", "-xvf", tarball_path], cwd=working_path)
tarball_tor_path = os.path.join(
working_path, "tor-browser_en-US", "Browser", "TorBrowser"
working_path, "tor-browser", "Browser", "TorBrowser"
)
# Copy into dist