2021-12-21 16:19:42 +00:00
|
|
|
#!/bin/sh
|
|
|
|
case "$(uname -s)" in
|
2024-05-23 00:03:03 +00:00
|
|
|
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
|
|
|
|
;;
|
2021-12-21 16:19:42 +00:00
|
|
|
esac
|