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 0b7709a81d
commit 7020c23900
2 changed files with 6 additions and 6 deletions

View file

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

View file

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