mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 22:18:19 +00:00
26 lines
527 B
Bash
Executable file
26 lines
527 B
Bash
Executable file
#!/bin/sh
|
|
case "$(uname -s)" in
|
|
CYGWIN* | MINGW* | MSYS*)
|
|
if [ -d "$APPDATA/DDNet/" ]; then
|
|
explorer "$APPDATA/DDNet/"
|
|
else
|
|
explorer "$APPDATA/Teeworlds/"
|
|
fi
|
|
;;
|
|
Darwin*)
|
|
if [ -d "$HOME/Library/Application Support/DDNet/" ]; then
|
|
open "$HOME/Library/Application Support/DDNet/"
|
|
else
|
|
open "$HOME/Library/Application Support/Teeworlds/"
|
|
fi
|
|
;;
|
|
*)
|
|
DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
|
if [ -d "$DATA_HOME/ddnet/" ]; then
|
|
xdg-open "$DATA_HOME/ddnet/"
|
|
else
|
|
xdg-open "$HOME/.teeworlds/"
|
|
fi
|
|
;;
|
|
esac
|