Skip to content

Commit

Permalink
Fix checks for opening browser on different OSes
Browse files Browse the repository at this point in the history
  • Loading branch information
Layoric committed Nov 20, 2024
1 parent e787883 commit 0ae52e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,12 @@ setup_ai_provider() {
# Open browser based on OS
if [[ "$OSTYPE" == "darwin"* ]]; then
open "http://localhost:5006"
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
xdg-open "http://localhost:5006"
elif command -v wslview &> /dev/null; then
wslview "http://localhost:5006"
elif command -v explorer.exe &> /dev/null; then
explorer.exe "http://localhost:5006"
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
xdg-open "http://localhost:5006"
else
gum style --foreground="#CCCCCC" "Please open http://localhost:5006 in your browser"
fi
Expand Down

0 comments on commit 0ae52e8

Please sign in to comment.