diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-01-09 16:52:07 +0100 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-01-09 16:52:07 +0100 |
commit | c8283a1ef06b15ab0b5871655f4bfaefe9518673 (patch) | |
tree | ee892a974ed799f708078def24e02f42cb70b5fa /bin/menuscripts/mgame | |
parent | cc216ca760a6b22c8b8041f525859f4201a52d1f (diff) | |
parent | 11137f566712166f593eee3466a0287b8f3fad7b (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/menuscripts/mgame')
-rwxr-xr-x | bin/menuscripts/mgame | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/menuscripts/mgame b/bin/menuscripts/mgame index 7c90a2b..cd7a7b0 100755 --- a/bin/menuscripts/mgame +++ b/bin/menuscripts/mgame @@ -4,7 +4,7 @@ steam_games() { # List every manifest file and get the id of the games from the file names and the name of the # game from the file. - find $HOME/.local/share/Steam/steamapps \ + find ~/.local/share/Steam/steamapps \ -maxdepth 1 -type f -iname 'appmanifest_*.acf' | while read -r File; do Name="$(grep '"name"' "$File" | cut -f 4 -d '"')" @@ -15,6 +15,7 @@ steam_games() } Choice="$(steam_games | cut -f 2- -d' ' | dmenu -c -i -x)" +[ "$Choice" ] || exit 1 ID="$(steam_games | grep "[0-9]\+ $Choice" | cut -f 1 -d ' ')" setsid steam steam://rungameid/"$ID" |