#!/bin/bash #--------------------------------------------------------------------- # File information. # File: othello.wrapper.in # Purpose: Single-instance wrapper (Laclin-specific) # License: BSD-style (for this file only) # Revision: 211101 #--------------------------------------------------------------------- # Wrapper parameters. BASEDIR=$PRODTREE/othello TARGET=$BASEDIR/program/othello LIBDIR=$BASEDIR/lib PROGNAME="othello" SNDFLAG=true #--------------------------------------------------------------------- # Run the target if it's available. if [ -f $TARGET ]; then cd $BASEDIR/program if [ "@$SNDFLAG" == "@true" ]; then resetpcmvol # Adjust volume fi if [ -d $LIBDIR ]; then # Adjust LD_LIBRARY_PATH LD_LIBRARY_PATH=$LIBDIR:$LD_LIBRARY_PATH export LD_LIBRARY_PATH fi /laclin/lacutil/single-instance --wait --use-aoss --usewin \ "^othello\z" \ $TARGET $* & exit fi #--------------------------------------------------------------------- # Display a missing-program dialog. TITLE="$PROGNAME isn't installed" /laclin/lacutil/single-instance \ --wait --usewin "^$TITLE" \ zenity --error --no-wrap --title="$TITLE" --text="$TITLE"