#!/bin/bash #--------------------------------------------------------------------- # File information. # File: smc.wrapper.in # Purpose: Single-instance wrapper (Laclin-specific) # License: BSD-style (for this file only) # Revision: 211021 #--------------------------------------------------------------------- # Wrapper parameters. BASEDIR=$PRODTREE/genius BINDIR=$BASEDIR/xbin LIBDIR=$BASEDIR/lib SNDFLAG=false TARGET=$BINDIR/gnome-genius PROGNAME="Genius" #--------------------------------------------------------------------- # Run the target if it's available. if [ -f $TARGET ]; then # Run the target PATH=$BINDIR:$PATH # Adjust PATH /laclin/lacutil/single-instance --wait --usepid \ "/pkg/genius/(libexec|xbin)/" \ $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"