mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 18:18:18 +00:00
23 lines
536 B
Bash
Executable file
23 lines
536 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
|