mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Open files in linux with xdg-open instead of nautilus
This commit is contained in:
parent
7ef1dfbe9c
commit
2ad8b167ba
@ -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
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user