Commit e2d99f89 authored by Mathis Rosenhauer's avatar Mathis Rosenhauer

jupyter: support Windows Subsystem for Linux

parent 3a3bf822
#!/bin/bash
#
# Copyright 2018 Deutsches Klimarechenzentrum GmbH
# Copyright 2019 Deutsches Klimarechenzentrum GmbH
#
# All rights reserved.
#
......@@ -319,7 +319,11 @@ function launch_browser() {
open "${url}" || show_url "${url}"
;;
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}"
......
Markdown is supported
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