Added "pol-steamhelp"

This commit is contained in:
crt0mega 2018-02-17 14:27:31 +01:00
parent 816935fd35
commit 7f5c57a5e4
2 changed files with 32 additions and 1 deletions

29
playonlinux/pol-steamhelp Executable file
View File

@ -0,0 +1,29 @@
#! /bin/bash
prefixes=$(ls ~/.PlayOnLinux/wineprefix -w 0)
chosen=$(zenity --list --text="Select Virtual PoL Drive" --column="Wineprefix" $prefixes)
path="$HOME/.PlayOnLinux/wineprefix/$chosen"
cfg="$path/playonlinux.cfg"
arch=$(grep -e "ARCH=" $cfg)
echo $arch
if [ $arch == "ARCH=x86" ]; then
steampath="$path/drive_c/Program Files/Steam"
export WINEARCH=win32
elif [ $arch == "ARCH=amd64" ]; then
steampath="$path/drive_c/Program Files (x86)/Steam"
export WINEARCH=win64
else
zenity --error --text="Could not detect architecture." --no-wrap
exit
fi
cd "$steampath"
export WINEPREFIX=$path
$appid=$(zenity --entry --text="Enter Steam AppID")
wine "Steam.exe" -applaunch $appid

View File

@ -4,6 +4,8 @@
Trigger warning: Most of them need "zenity" to be installed.
- witcher-2-import
- games/witcher-2-import
- Creates a symlink to your The Witcher savegames, allowing the Linux version of The Witcher 2 to import these.
- playonlinux/pol-steamhelp
- Provides a simple GUI to install Steam games via AppID in PlayOnLinux "Virtual Drives".