void-packages/srcpkgs/widelands/files/widelands.sh

11 lines
309 B
Bash
Raw Normal View History

2015-05-05 00:56:54 +02:00
#!/bin/sh
#
# Startup script for widelands to recognize the user's LANG setting, if any.
WL_DATA="/usr/share/games/widelands"
WL_LOCALE="$WL_DATA/locale"
WL_LANG="$LANG"
[ -z "$WL_LANG" ] && WL_LANG="en_US.UTF-8"
exec /usr/games/widelands --datadir="$WL_DATA" --localedir="$WL_LOCALE" --language="$WL_LANG"