Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
If you're just trying to launch a random game you can just use the steam protocol to launch via the appid directly
basically a really really sloppy way is
1) @array="ls | grep appmanifest" this greps and loads all appmanifest_<appid>.acf files in an array (syntax is probably wrong I'm doing this on my phone but you get the idea)
2) Pick one randomly
3) regex the <appid> (you could probably combine the regex part in step 1 too)
4) launch the game using "steam://run/<appid>"
You already have available all the necessary information to use with your bash script
Learn better scripting.
#!/bin/bash
cd ~/.steam/steamapps
ls |sort -R |tail -1 |while read file; do
file=${file//[!0-9]/}
steam -gameidlaunch $file
done
Just open a text editor, enter the above code and save it as a .sh somewhere. Then, just make it executable (chmod +x filename.sh). Run it by clicking on it in a file browser, or by opening a terminal at its location and typing: ./filename.sh
[Desktop Entry]
Categories=Game;
Comment=Play some game on Steam
Exec=~/.local/share/applications/random.sh
Icon=steam
Name=Launch a random Steam game
StartupNotify=true
Terminal=false
Type=Application
Open a text editor, put that stuff in there and save as a .desktop in ~/.local/share/applications. Then, make it executable, either by right-clicking and selecting "Properties" in a file manager, or by opening a terminal in that directory and typing "chmod +x filename.desktop"