<div dir="ltr">On Fri, Sep 13, 2013 at 4:15 PM, David Shaw <span dir="ltr"><<a href="mailto:dj.shaw@btconnect.com" target="_blank">dj.shaw@btconnect.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As an experiment in learning zenity, I've written a small launcher script. below, for the various versions of the game Avernum on my PC. This script calls a game specific launcher script, depending on the version of the game chosen, which deals with switching to the right directory, setting the Wine prefix and actually running the game.<br>


<br>
When run from the terminal, this script works well and the chosen game launches but, when I try and put this script in the Openbox menu or try to run it from gmrun, the zenity dialog opens, but the game doesn't run.<br>


<br>
Each of the individual, game specific launcher scripts work fine in both the OPenbox menu and gmrun, so the problem must lie with the script below.<br>
<br>
Any hints, ideas or suggestions very gratefully received.<br>
<br>
Many thanks,<br>
<br>
David Shaw<br>
<br>
<br>
#!/bin/bash<br>
<br>
case $(zenity --list --title="Avernum Version Chooser" --width=255 --height=322 --radiolist --column=" " --column=" " TRUE "Avernum 1" FALSE "Avernum 2" FALSE "Avernum 3" FALSE "Avernum 4" False "Avernum 5" False "Avernum 6" FALSE "Blades of Avernum" FALSE "Avernum - Escape From the Pit") in<br>


<br>
"Avernum 1") avernum="Avernum1";;<br>
"Avernum 2") avernum="Avernum2";;<br>
"Avernum 3") avernum="Avernum3";;<br>
"Avernum 4") avernum="Avernum4";;<br>
"Avernum 5") avernum="Avernum5";;<br>
"Avernum 6") avernum="Avernum6";;<br>
"Blades of Avernum") avernum="AvernumBlades";;<br>
"Avernum - Escape From the Pit") avernum="AvernumPit";;<br>
esac<br>
<br>
. $avernum.sh<br></blockquote><div><br></div><div>Do you need the full path to the script here?</div></div></div></div>