#!/bin/sh # sliderule.wrapper.in - Wrapper for "sliderule.py" # License: BSD-style (for this file only) # Revision: 090214 NN=`ps ax | grep "python.*/sliderule\.py" | wc -l` if [ "x$NN" != "x0" ]; then TITLE="sliderule is already running" MSG="The sliderule is already running. For technical reasons, we can't move the program. If you don't see it, check the other workspaces." /laclin/lacutil/single-instance --wait --usewin \ "^$TITLE" \ zenity --error --no-wrap --title="$TITLE" --text="$MSG" & exit 1 fi $PRODTREE/sliderule/program/sliderule.py &