Skip to content

Commit 0ae52e8

Browse files
committed
Fix checks for opening browser on different OSes
1 parent e787883 commit 0ae52e8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: install.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,12 @@ setup_ai_provider() {
368368
# Open browser based on OS
369369
if [[ "$OSTYPE" == "darwin"* ]]; then
370370
open "http://localhost:5006"
371-
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
372-
xdg-open "http://localhost:5006"
371+
elif command -v wslview &> /dev/null; then
372+
wslview "http://localhost:5006"
373373
elif command -v explorer.exe &> /dev/null; then
374374
explorer.exe "http://localhost:5006"
375+
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
376+
xdg-open "http://localhost:5006"
375377
else
376378
gum style --foreground="#CCCCCC" "Please open http://localhost:5006 in your browser"
377379
fi

0 commit comments

Comments
 (0)