From 19f01e99986f52f88ff8774fd0cf14a9f59045c5 Mon Sep 17 00:00:00 2001 From: chayleaf Date: Tue, 7 Mar 2023 19:25:11 +0700 Subject: [PATCH] fix rofi-steam-game-list previously I passed the only config option as argv[1], but rofi sets that to the selected option, so instead I pass it as an env var now --- home/rofi-steam-game-list/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/rofi-steam-game-list/src/main.rs b/home/rofi-steam-game-list/src/main.rs index 8200553..c5ee5f5 100644 --- a/home/rofi-steam-game-list/src/main.rs +++ b/home/rofi-steam-game-list/src/main.rs @@ -410,8 +410,8 @@ impl std::future::Future for PendingFut { } fn main() { - let target_type = std::env::args().nth(1).map_or_else( - || "game".to_owned(), + let target_type = std::env::var("STEAM_GAME_LIST_TYPE").map_or_else( + |_| "game".to_owned(), |mut x| { x.make_ascii_lowercase(); x