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:
parent
6af0cdbacf
commit
19f01e9998
|
@ -410,8 +410,8 @@ impl std::future::Future for PendingFut {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let target_type = std::env::args().nth(1).map_or_else(
|
let target_type = std::env::var("STEAM_GAME_LIST_TYPE").map_or_else(
|
||||||
|| "game".to_owned(),
|
|_| "game".to_owned(),
|
||||||
|mut x| {
|
|mut x| {
|
||||||
x.make_ascii_lowercase();
|
x.make_ascii_lowercase();
|
||||||
x
|
x
|
||||||
|
|
Loading…
Reference in a new issue