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
This commit is contained in:
chayleaf 2023-03-07 19:25:11 +07:00
parent 6af0cdbacf
commit 19f01e9998

View file

@ -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