Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Linux start script

> Actually, I don't care that '~' doesn't work since requiring full paths
> as parameter values is reasonable: safer and clearer.
>
> What I don't like is the creation of a "~' directory in the home
> directory since that's clearly not anyone's intended semantic, the
> directory is 'hard' to delete, and, as a whole it's confusing.
>
> It's a very minor issue but one that we should be aware of until such
> times as eclipse gives us better guidance on how we are supposed to
> handle this situation.

Hi Adrian,
I agree with what you say about the ~ creation and was just proposing
an alternative for the script.

Ciao
Andrea




>
> --adrian
>
> On Mon, 2008-07-28 at 08:32 +0200, andrea antonello wrote:
>> All linux systems should have a HOME variable set. Probably you could use that?
>>
>> Andrea
>>
>> On Mon, Jul 28, 2008 at 7:45 AM, Adrian Custer <acuster@xxxxxxxxx> 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
>> >
>> _______________________________________________
>> 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
>


Back to the top