Open files in linux with xdg-open instead of nautilus

This commit is contained in:
Micah Lee 2020-04-06 20:29:02 -07:00
parent 7ef1dfbe9c
commit 2ad8b167ba
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
2 changed files with 3 additions and 3 deletions

View File

@ -250,11 +250,11 @@ class ReceiveHistoryItemFile(QtWidgets.QWidget):
if self.common.platform == "Linux" or self.common.platform == "BSD":
try:
# If nautilus is available, open it
subprocess.Popen(["nautilus", abs_filename])
subprocess.Popen(["xdg-open", self.dir])
except:
Alert(
self.common,
strings._("gui_open_folder_error_nautilus").format(abs_filename),
strings._("gui_open_folder_error").format(abs_filename),
)
# macOS

View File

@ -141,7 +141,7 @@
"gui_settings_data_dir_label": "Save files to",
"gui_settings_data_dir_browse_button": "Browse",
"gui_settings_public_mode_checkbox": "Public mode",
"gui_open_folder_error_nautilus": "Cannot open folder because nautilus is not available. The file is here: {}",
"gui_open_folder_error": "Failed to open folder with xdg-open. The file is here: {}",
"gui_settings_language_label": "Preferred language",
"gui_settings_language_changed_notice": "Restart OnionShare for the new language to be applied.",
"systray_menu_exit": "Quit",