2021-12-21 16:19:42 +00:00
|
|
|
#!/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;;
|
|
|
|
*)
|
2022-02-01 23:51:40 +00:00
|
|
|
DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
|
|
|
if [ -d "$DATA_HOME/ddnet/" ]; then
|
|
|
|
xdg-open "$DATA_HOME/ddnet/"
|
2021-12-21 16:19:42 +00:00
|
|
|
else
|
|
|
|
xdg-open "$HOME/.teeworlds/"
|
|
|
|
fi;;
|
|
|
|
esac
|