#!/bin/sh # wpclipper - Wrapper for "wpclipper.py" # License: BSD-style (for this file only) # Revision: 110905 LOOPFILE=/xzm/wpclipdata.xzm MNTDIR=/mnt/wpclipdata PROGNAME="WPClipArt" TITLE="Not provided by this version" if [ -f $LOOPFILE ]; then mkdir -p $MNTDIR chmod 777 $MNTDIR >& /dev/null n=`ls $MNTDIR | wc -l` if [ $n = 0 ]; then sudo /bin/mount -o loop $LOOPFILE $MNTDIR fi PNGFILE=`find $MNTDIR/ -type f -name \*.png | head -1` if [ -z "$PNGFILE" ]; then echo Error: Mount failed exit 1 fi cd $MNTDIR/ python __META_PREFIX__/program/wpclipper.py & else MSG="Due to disk-space constraints, this version of the distro omits $PROGNAME. You can get the package by booting a larger version." /laclin/lacutil/single-instance --wait --usewin \ "^$TITLE" \ /laclin/bin/zenity --error --no-wrap --title="$TITLE" --text="$MSG" fi