Commit e2d99f89 authored by Mathis Rosenhauer's avatar Mathis Rosenhauer
Browse files

jupyter: support Windows Subsystem for Linux

parent 3a3bf822
#!/bin/bash #!/bin/bash
# #
# Copyright 2018 Deutsches Klimarechenzentrum GmbH # Copyright 2019 Deutsches Klimarechenzentrum GmbH
# #
# All rights reserved. # All rights reserved.
# #
...@@ -319,7 +319,11 @@ function launch_browser() { ...@@ -319,7 +319,11 @@ function launch_browser() {
open "${url}" || show_url "${url}" open "${url}" || show_url "${url}"
;; ;;
Linux) Linux)
xdg-open "${url}" || show_url "${url}" if [[ "$(uname -a)" == *@(Microsoft|WSL)* ]]; then
cmd.exe /c start "${url}" || show_url "${url}"
else
xdg-open "${url}" || show_url "${url}"
fi
;; ;;
*) *)
show_url "${url}" show_url "${url}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment