diff --git a/src/cli.rs b/src/cli.rs index 5847a35..1b7430a 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -828,6 +828,8 @@ pub fn run(sub: Subcommand, no_manifest_update: bool, try_manifest_update: bool) gui, commands, } => { + log::warn!("Wrap environment variables: {:?}", std::env::vars()); + let manifest = load_manifest(&config, &mut cache, no_manifest_update, try_manifest_update)?; let layout = BackupLayout::new(config.restore.path.clone()); let title_finder = TitleFinder::new(&config, &manifest, layout.restorable_game_set()); diff --git a/src/prelude.rs b/src/prelude.rs index 91749ec..f75ecb1 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -37,7 +37,7 @@ pub const INVALID_FILE_CHARS: &[char] = &['\\', '/', ':', '*', '?', '"', '<', '> pub static STEAM_DECK: LazyLock = LazyLock::new(|| Os::HOST == Os::Linux && StrictPath::new("/home/deck".to_string()).exists()); pub static STEAM_DECK_GAME_MODE: LazyLock = - LazyLock::new(|| Os::HOST == Os::Linux && std::env::var("SteamDeck").is_ok_and(|x| &x == "1")); + LazyLock::new(|| Os::HOST == Os::Linux && std::env::var("SteamEnv").is_ok_and(|x| &x == "1")); pub static OS_USERNAME: LazyLock = LazyLock::new(whoami::username); pub static AVAILABLE_PARALELLISM: LazyLock> =