[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [udig-devel] Linux start script | 
I think that is an acceptable bug :).
Thanks for the report.
Jesse
On 28-Jul-08, at 7:45 AM, Adrian Custer wrote:
Hey Jesse,
The -data does get taken into account except the '~' doesn't get
de-referenced so '-data ~/Projects/uDig-wrksp/' actually creates a
directory named '~' in the user's home directory. I guess this is a
documentation issue for the -data flag only since udig is working, by
default, relative to that directory so that ~ is unnecessary.
--adrian
On Fri, 2008-07-25 at 17:31 +0200, Jesse Eichar wrote:
Hi Adrian could you test this script for starting uDig?  I have  
tested
it and it seems to work.  The -data and other parameters are taken
into account now.  Also symlinks and calling from both the symlink  
and
the actual script from other directories also seems to work.
#!/bin/sh
PRG="$0"
while [ -h "$PRG" ]; do
	ls=`ls -ld "$PRG"`
	link=`expr "$ls" : '.*-> \(.*\)$'`
	if expr "$link" : '/.*' > /dev/null; then
		PRG="$link"
	else
		PRG=`dirname "$PRG"`/"$link"
	fi
done
# Get standard environment variables
PRGDIR=`dirname "$PRG"`
DATA_ARG=false
for ARG in $@
do
	if [ $ARG = "-data" ]; then DATA_ARG=true; fi
done
if $DATA_ARG; then
	$PRGDIR/udig-bin $@
else
	 $PRGDIR/udig-bin -data ~/uDigWorkspace $@
fi
Thanks,
Jesse
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel