mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-11 07:19:30 -05:00
Fixed desktop/scripts/get-tor.py and desktop/onionshare/widgets.py for linux64
This commit is contained in:
parent
16cdb588a8
commit
d536595283
@ -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")
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user