[openbox] Problem with bash script in Openbox menu

Dana Jansens danakj at orodu.net
Sat Sep 14 15:16:42 EDT 2013


On Fri, Sep 13, 2013 at 4:15 PM, David Shaw <dj.shaw at btconnect.com> wrote:

> 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.
>
> 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.
>
> 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.
>
> Any hints, ideas or suggestions very gratefully received.
>
> Many thanks,
>
> David Shaw
>
>
> #!/bin/bash
>
> 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
>
> "Avernum 1") avernum="Avernum1";;
> "Avernum 2") avernum="Avernum2";;
> "Avernum 3") avernum="Avernum3";;
> "Avernum 4") avernum="Avernum4";;
> "Avernum 5") avernum="Avernum5";;
> "Avernum 6") avernum="Avernum6";;
> "Blades of Avernum") avernum="AvernumBlades";;
> "Avernum - Escape From the Pit") avernum="AvernumPit";;
> esac
>
> . $avernum.sh
>

Do you need the full path to the script here?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20130914/bff55832/attachment.html>


More information about the openbox mailing list