From 1ee8e339af92130bb42c74aaec93de7abc1e5742 Mon Sep 17 00:00:00 2001 From: Benjamin S Wolf Date: Wed, 7 May 2025 09:51:26 -0700 Subject: [PATCH] Launcher: Warn if there is no File Browser (#4275) --- Launcher.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Launcher.py b/Launcher.py index 859ebf0f..594286fa 100644 --- a/Launcher.py +++ b/Launcher.py @@ -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():