diff --git a/koboldcpp.py b/koboldcpp.py index 4d983b5d8..545bccefb 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -3650,12 +3650,14 @@ def zenity(filetypes=None, initialdir="", initialfile="", **kwargs) -> Tuple[int def zenity_sanity_check(): #make sure zenity is sane nonlocal zenity_bin try: # Run `zenity --help` and pipe to grep - result = subprocess.run(f"{zenity_bin} --help | grep Usage", shell=True, capture_output=True, text=True, encoding='utf-8', timeout=10) + result = subprocess.run(f"{zenity_bin} --help", shell=True, capture_output=True, text=True, encoding='utf-8', timeout=10) if result.returncode == 0 and "Usage" in result.stdout: return True else: + print(f"Zenity/YAD sanity check failed - ReturnCode={result.returncode}") return False except FileNotFoundError: + print(f"Zenity/YAD sanity check failed - {zenity_bin} not found") return False if not zenity_sanity_check(): diff --git a/make_pyinstaller.sh b/make_pyinstaller.sh index 3363d0a76..814fd9ef1 100644 --- a/make_pyinstaller.sh +++ b/make_pyinstaller.sh @@ -23,4 +23,4 @@ pyinstaller --noconfirm --onefile --clean --console --collect-all customtkinter --add-data "./rwkv_vocab.embd:." \ --add-data "./rwkv_world_vocab.embd:." \ --version-file "./version.txt" \ -"./koboldcpp.py" -n "koboldcpp" +"./koboldcpp.py" -n "koboldcpp" \ No newline at end of file