Fix incorrect directory check for SRM userdata and add SRM dir to global.sh

This commit is contained in:
icenine451 2025-04-09 10:04:13 -04:00
parent 9d27347817
commit 34b9b927fa
2 changed files with 2 additions and 1 deletions

View file

@ -273,6 +273,7 @@ fi
# Steam ROM Manager user files and paths
steamsync_folder="$rdhome/.sync" # Folder containing favorites manifest for SRM
srm_userdata="$XDG_CONFIG_HOME/steam-rom-manager/userData" # SRM userdata folder, holding
retrodeck_favorites_file="$steamsync_folder/retrodeck_favorites.json" # The current SRM manifest of all games that have been favorited in ES-DE
srm_log="$logs_folder/srm_log.log" # Log file for capturing the output of the most recent SRM run, for debugging purposes
retrodeck_added_favorites="$steamsync_folder/retrodeck_added_favorites.json" # Temporary manifest of any games that were newly added to the ES-DE favorites and should be added to Steam

View file

@ -11,7 +11,7 @@ steam_sync() {
log "i" "Starting Steam Sync"
create_dir "$steamsync_folder"
if [ ! -f "$srm_path" ]; then
if [[ ! -d "$srm_userdata" ]]; then
log "e" "Steam ROM Manager configuration not initialized! Initializing now."
prepare_component "reset" "steam-rom-manager"
fi