diff --git a/src/__pycache__/branch_tab.cpython-39.pyc b/src/__pycache__/branch_tab.cpython-39.pyc index 7be198e..5e6e1f0 100644 Binary files a/src/__pycache__/branch_tab.cpython-39.pyc and b/src/__pycache__/branch_tab.cpython-39.pyc differ diff --git a/src/branch_tab.py b/src/branch_tab.py index 05809a0..b216fa6 100644 --- a/src/branch_tab.py +++ b/src/branch_tab.py @@ -345,8 +345,14 @@ def open_in_text_editor(self, app=None): messagebox.showerror('Error', message='Default Text Editor has not been Defined') def open_with_app(self, app, file): - subprocess.call([app, file]) - + try: + subprocess.call([app, file]) + except Exception as e: + msg = str(e) + if "cannot find the file" in msg: + msg = f'The app "{app}" cannot be found' + messagebox.showerror('Error', message=f"The following error occured\n\n {msg}") + def new_folders(self): self.w=AddFoldersWindow(self.mainapp, self.master, self) self.master.wait_window(self.w.top) diff --git a/src/main.py b/src/main.py index 503725f..aa27709 100644 --- a/src/main.py +++ b/src/main.py @@ -49,7 +49,7 @@ def __init__(self, parent, *args, **kwargs): self.switch_style("darkly") def setup_variables(self): - self.version = "0.33.8" + self.version = "0.33.9" self.parent.title(f"Tk Path Finder V{self.version}") self.config_data = config_file_manager.load_config_file(self) self.plugin_folder = ".\Plugins" diff --git a/src/tk_path_finder_config.json b/src/tk_path_finder_config.json index f50bc08..68c57e5 100644 --- a/src/tk_path_finder_config.json +++ b/src/tk_path_finder_config.json @@ -38,6 +38,9 @@ "open_with_apps": { ".py": [ "C:\\Program Files\\Sublime Text 3\\sublime_text.exe" + ], + ".json": [ + "fdgdfgdg" ] }, "default_file_width": 600,