mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Open folder containing uploads with the file selected, in macOS and Windows
This commit is contained in:
parent
6ac1ca3784
commit
41b4cea673
@ -92,15 +92,11 @@ class File(QtWidgets.QWidget):
|
||||
|
||||
# macOS
|
||||
elif self.common.platform == 'Darwin':
|
||||
# TODO: Implement opening folder with file selected in macOS
|
||||
# This seems helpful: https://stackoverflow.com/questions/3520493/python-show-in-finder
|
||||
self.common.log('File', 'open_folder', 'not implemented for Darwin yet')
|
||||
subprocess.call(['open', '-R', abs_filename])
|
||||
|
||||
# Windows
|
||||
elif self.common.platform == 'Windows':
|
||||
# TODO: Implement opening folder with file selected in Windows
|
||||
# This seems helpful: https://stackoverflow.com/questions/6631299/python-opening-a-folder-in-explorer-nautilus-mac-thingie
|
||||
self.common.log('File', 'open_folder', 'not implemented for Windows yet')
|
||||
webbrowser.Popen(['explorer', '/select', abs_filename])
|
||||
|
||||
|
||||
class Upload(QtWidgets.QWidget):
|
||||
|
Loading…
Reference in New Issue
Block a user