Skip to content

Commit

Permalink
Fix game mode env var
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Dec 23, 2024
1 parent b76b422 commit 9e28bc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub const INVALID_FILE_CHARS: &[char] = &['\\', '/', ':', '*', '?', '"', '<', '>
pub static STEAM_DECK: LazyLock<bool> =
LazyLock::new(|| Os::HOST == Os::Linux && StrictPath::new("/home/deck".to_string()).exists());
pub static STEAM_DECK_GAME_MODE: LazyLock<bool> =
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<String> = LazyLock::new(whoami::username);

pub static AVAILABLE_PARALELLISM: LazyLock<Option<NonZeroUsize>> =
Expand Down

0 comments on commit 9e28bc6

Please sign in to comment.