diff options
Diffstat (limited to 'mm-server.patch')
-rw-r--r-- | mm-server.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/mm-server.patch b/mm-server.patch new file mode 100644 index 000000000000..e09fd4bb9c00 --- /dev/null +++ b/mm-server.patch @@ -0,0 +1,48 @@ +60,66c60 +< if ! test -z "$MEGAMEK_CONFPATH"; then +< if ! test -d "/.$MEGAMEK_CONFPATH" -a \ +< -f "/.$MEGAMEK_CONFPATH/$MEGAMEK_DEFAULT_JARNAME"; then +< echo "Relative path: $MEGAMEK_CONFPATH. Clearing." +< MEGAMEK_CONFPATH="" +< fi +< fi +--- +> # MEGAMEK_CONFPATH may be set before hand, which is not desired. +68,79c62,67 +< temp_path=$MEGAMEK_DEFAULT_CONFPATH +< if test -d $temp_path; then +< MEGAMEK_CONFPATH=$temp_path +< else +< # See if we should create the default configuration directory. +< if test -d $MEGAMEK_DEFAULT_CONFROOT -a \ +< -w $MEGAMEK_DEFAULT_CONFROOT; then +< mkdir $temp_path +< if test -d $temp_path; then +< MEGAMEK_CONFPATH=$temp_path +< fi +< fi +--- +> conf=$HOME/.config/mekhq +> +> if [[ -n "$XGD_CONFIG_HOME" ]] +> then +> conf="$XDG_CONFIG_HOME/mekhq" +> fi +81,86c69,71 +< # If MEGAMEK_CONFPATH is still not set, try the PWD. +< if test -z "$MEGAMEK_CONFPATH"; then +< if test -w $PWD; then +< MEGAMEK_CONFPATH=$PWD +< fi +< fi +--- +> if [[ ! -d "$conf" ]] +> then +> mkdir -p "$conf" +87a73,74 +> +> MEGAMEK_CONFPATH="$conf" +91c78 +< if test -z "$MEGAMEK_CONFPATH"; then +--- +> if ! test -d "$MEGAMEK_CONFPATH"; then |