Skip to content

Commit 70ba616

Browse files
committed
browser launch
1 parent e07de2e commit 70ba616

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

klite.embd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11390,6 +11390,8 @@ initializeInstructUIFunctionality();
1139011390
pick_default_horde_models();
1139111391
indexeddb_save("savedusermod","");
1139211392
indexeddb_save("savedcustomcss", "");
11393+
let styleElement = document.getElementById('custom_css');
11394+
styleElement.innerHTML = "";
1139311395
},null);
1139411396

1139511397
}

koboldcpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,7 @@ def LaunchWebbrowser(target_url, failedmsg):
18471847
try:
18481848
if os.name == "posix" and "DISPLAY" in os.environ: # UNIX-like systems
18491849
import subprocess
1850-
result = subprocess.run(["xdg-open", target_url], check=True)
1850+
result = subprocess.run(["/usr/bin/env", "xdg-open", target_url], check=True)
18511851
if result.returncode == 0:
18521852
return # fallback successful
18531853
raise RuntimeError("no xdg-open")

0 commit comments

Comments
 (0)