Launcher: Warn if there is no File Browser (#4275)

This commit is contained in:
Benjamin S Wolf authored and GitHub committed 2025-05-07 12:51:26 -04:00
1 parent dffde64079
commit 1ee8e339af
1 file changed
+6 -2
+6 -2
View File
@@ -84,12 +84,16 @@ def browse_files():
def open_folder(folder_path):
if is_linux:
exe = which('xdg-open') or which('gnome-open') or which('kde-open')
subprocess.Popen([exe, folder_path])
elif is_macos:
exe = which("open")
subprocess.Popen([exe, folder_path])
else:
webbrowser.open(folder_path)
return
if exe:
subprocess.Popen([exe, folder_path])
else:
logging.warning(f"No file browser available to open {folder_path}")
def update_settings():