Skip to content

Commit

Permalink
initial skel for #486
Browse files Browse the repository at this point in the history
  • Loading branch information
frostworx committed Aug 3, 2022
1 parent af25153 commit ea0ec14
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,18 @@ else
STLCFGDIR="$XDG_CONFIG_HOME/${PROGNAME,,}" # or in XDG_CONFIG_HOME if the user set the variable
fi

if [ -z "$XDG_CACHE_HOME" ]; then
STLCACHEDIR="$HOME/.cache/${PROGNAME,,}"
else
STLCACHEDIR="$XDG_CACHE_HOME/${PROGNAME,,}"
fi

if [ -z "$XDG_DATA_HOME" ]; then
STLDATADIR="$HOME/.local/share/${PROGNAME,,}"
else
STLDATADIR="$XDG_DATA_HOME/${PROGNAME,,}"
fi

SYSTEMSTLCFGDIR="$PREFIX/share/${PROGNAME,,}" # systemwide config dir
BASELOGDIR="$STLCFGDIR/logs" # base logfile dir
DEFLOGDIR="$BASELOGDIR/${PROGNAME,,}" # default logfile dir
Expand Down Expand Up @@ -5966,6 +5978,8 @@ function migrateCfgOption {
writelog "INFO" "${FUNCNAME[0]} - Automatically updating variable CHECKCOLLECTIONS from old variable CHECKCATEGORIES"
updateConfigEntry "CHECKCOLLECTIONS" "$CHECKCOLLECTIONS" "$STLGAMECFG"
fi

writelog "INFO" "${FUNCNAME[0]} - Upcoming file migration. Some files in '$STLCFGDIR' will soon be migrated to '$STLDATADIR' or '$STLCACHEDIR' - see #486"
fi
}

Expand Down

0 comments on commit ea0ec14

Please sign in to comment.