From 34b9b927fa972003096baa7948d272a54c813383 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Wed, 9 Apr 2025 10:04:13 -0400 Subject: [PATCH] Fix incorrect directory check for SRM userdata and add SRM dir to global.sh --- functions/global.sh | 1 + functions/steam_sync.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/global.sh b/functions/global.sh index 450601d0..3f915e5f 100644 --- a/functions/global.sh +++ b/functions/global.sh @@ -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 diff --git a/functions/steam_sync.sh b/functions/steam_sync.sh index 8a15a1d6..bfe4c23e 100644 --- a/functions/steam_sync.sh +++ b/functions/steam_sync.sh @@ -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