From e4c4f17d09d08d783d43c70832a0a1eea357127d Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Sat, 8 Jun 2024 16:49:42 +0200 Subject: [PATCH] fix: os path exe detection in install_dir --- client_details.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client_details.py b/client_details.py index 9ab7c64..0dc6a88 100644 --- a/client_details.py +++ b/client_details.py @@ -153,7 +153,10 @@ def create_details_page(app, software, backswitch_function): software.run_button = run_button # install button # - if not software.run_exe or not os.path.isfile(software.run_exe): + print(software.run_exe) + print(os.path.join(software.backend.install_dir, software.run_exe)) + if not software.run_exe or not (os.path.isfile(software.run_exe) + or os.path.isfile(os.path.join(software.backend.install_dir, software.title, software.run_exe))): run_button.configure(state=tkinter.DISABLED) run_button.configure(fg_color="gray")