From 70ba616ecc66a724d6ce73da0eb13eaa1afdf88d Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Wed, 15 Jan 2025 17:41:14 +0800 Subject: [PATCH] browser launch --- klite.embd | 2 ++ koboldcpp.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/klite.embd b/klite.embd index 8a4489c5c..fac252a4a 100644 --- a/klite.embd +++ b/klite.embd @@ -11390,6 +11390,8 @@ initializeInstructUIFunctionality(); pick_default_horde_models(); indexeddb_save("savedusermod",""); indexeddb_save("savedcustomcss", ""); + let styleElement = document.getElementById('custom_css'); + styleElement.innerHTML = ""; },null); } diff --git a/koboldcpp.py b/koboldcpp.py index 552d34f0e..46735fe21 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -1847,7 +1847,7 @@ def LaunchWebbrowser(target_url, failedmsg): try: if os.name == "posix" and "DISPLAY" in os.environ: # UNIX-like systems import subprocess - result = subprocess.run(["xdg-open", target_url], check=True) + result = subprocess.run(["/usr/bin/env", "xdg-open", target_url], check=True) if result.returncode == 0: return # fallback successful raise RuntimeError("no xdg-open")