mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Click "Read Message" opens message in default text editor
This commit is contained in:
parent
17966471ab
commit
ce6b28dca3
@ -308,24 +308,18 @@ class ReceiveHistoryItemMessage(QtWidgets.QWidget):
|
||||
"""
|
||||
self.common.log("ReceiveHistoryItemMessage", "open_message", self.filename)
|
||||
|
||||
# # Linux
|
||||
# if self.common.platform == "Linux" or self.common.platform == "BSD":
|
||||
# try:
|
||||
# # If nautilus is available, open it
|
||||
# subprocess.Popen(["xdg-open", self.dir])
|
||||
# except Exception:
|
||||
# Alert(
|
||||
# self.common,
|
||||
# strings._("gui_open_folder_error").format(abs_filename),
|
||||
# )
|
||||
# Linux
|
||||
if self.common.platform == "Linux" or self.common.platform == "BSD":
|
||||
# If nautilus is available, open it
|
||||
subprocess.Popen(["xdg-open", self.filename])
|
||||
|
||||
# # macOS
|
||||
# elif self.common.platform == "Darwin":
|
||||
# subprocess.call(["open", "-R", abs_filename])
|
||||
# macOS
|
||||
elif self.common.platform == "Darwin":
|
||||
subprocess.call(["open", self.filename])
|
||||
|
||||
# # Windows
|
||||
# elif self.common.platform == "Windows":
|
||||
# subprocess.Popen(["explorer", f"/select,{abs_filename}"])
|
||||
# Windows
|
||||
elif self.common.platform == "Windows":
|
||||
subprocess.Popen(["notepad", self.filename])
|
||||
|
||||
|
||||
class ReceiveHistoryItem(HistoryItem):
|
||||
|
Loading…
Reference in New Issue
Block a user