From 7f5c57a5e4700e5d81b355ef07778207cb28ae26 Mon Sep 17 00:00:00 2001 From: crt0mega Date: Sat, 17 Feb 2018 14:27:31 +0100 Subject: [PATCH] Added "pol-steamhelp" --- playonlinux/pol-steamhelp | 29 +++++++++++++++++++++++++++++ readme.md | 4 +++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100755 playonlinux/pol-steamhelp diff --git a/playonlinux/pol-steamhelp b/playonlinux/pol-steamhelp new file mode 100755 index 0000000..40aca3d --- /dev/null +++ b/playonlinux/pol-steamhelp @@ -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 diff --git a/readme.md b/readme.md index b11085e..bc85a0a 100644 --- a/readme.md +++ b/readme.md @@ -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".