[GRASS5] Re: TclTkGrass: default directory

On Wed, Nov 15, 2000 at 02:24:34PM +0100, mlennert@club.worldonline.be wrote:

Hello,

How can I change the default directory to which the 'file' buttons open the
file browser ? Right now it always opens to /usr/games...

Hi all,

does anybody has an idea? If you use in tcltkgrass:
Import-> Raster map -> something

and hit the file button, it is not the current
directory (but it should).

For Moritz it is /usr/games, on my machine /usr/openwin/bin.
Must be a problem in src/tcltkgrass/main/gui.tcl

Thanks in advance

Markus

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Markus,

is it ok if the home directory is used?
This would require that the enviroment variable HOME is set.

Everything else (how do you define the 'current' directory? The one you
are in at startup of tcltkgrass?) would be complicated.

cu,

Andreas

Markus Neteler wrote:

On Wed, Nov 15, 2000 at 02:24:34PM +0100, mlennert@club.worldonline.be wrote:
> Hello,
>
> How can I change the default directory to which the 'file' buttons open the
> file browser ? Right now it always opens to /usr/games...

Hi all,

does anybody has an idea? If you use in tcltkgrass:
Import-> Raster map -> something

and hit the file button, it is not the current
directory (but it should).

For Moritz it is /usr/games, on my machine /usr/openwin/bin.
Must be a problem in src/tcltkgrass/main/gui.tcl

Thanks in advance

Markus

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

--
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
Andreas.Lange@Rhein-Main.de - A.C.Lange@GMX.net

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

On Wed, Nov 15, 2000 at 08:29:30PM +0100, Andreas Lange wrote:

Markus,

is it ok if the home directory is used?
This would require that the enviroment variable HOME is set.

Everything else (how do you define the 'current' directory? The one you
are in at startup of tcltkgrass?) would be complicated.

This would be perfect. I think it was working like that in
past. Since Moritz comment I am aware that it is not the
tcltkgrass startup directory any more.

But HOME is o.k., better than /usr/games :slight_smile:

Thanks for loking into that,

Markus

cu,

Andreas

Markus Neteler wrote:
>
> On Wed, Nov 15, 2000 at 02:24:34PM +0100, mlennert@club.worldonline.be wrote:
> > Hello,
> >
> > How can I change the default directory to which the 'file' buttons open the
> > file browser ? Right now it always opens to /usr/games...
>
> Hi all,
>
> does anybody has an idea? If you use in tcltkgrass:
> Import-> Raster map -> something
>
> and hit the file button, it is not the current
> directory (but it should).
>
> For Moritz it is /usr/games, on my machine /usr/openwin/bin.
> Must be a problem in src/tcltkgrass/main/gui.tcl
>
> Thanks in advance
>
> Markus
>
> ----------------------------------------
> If you want to unsubscribe from GRASS Development Team mailing list write to:
> minordomo@geog.uni-hannover.de with
> subject 'unsubscribe grass5'

--
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
Andreas.Lange@Rhein-Main.de - A.C.Lange@GMX.net

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

--
Dipl.-Geogr. Markus Neteler * University of Hannover
Institute of Physical Geography and Landscape Ecology
Schneiderberg 50 * D-30167 Hannover * Germany
Tel: ++49-(0)511-762-4494 Fax: -3984

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Hi all

Markus Neteler wrote:

On Wed, Nov 15, 2000 at 08:29:30PM +0100, Andreas Lange wrote:
> Markus,
>
> is it ok if the home directory is used?
> This would require that the enviroment variable HOME is set.
>
> Everything else (how do you define the 'current' directory? The one you
> are in at startup of tcltkgrass?) would be complicated.
This would be perfect. I think it was working like that in
past. Since Moritz comment I am aware that it is not the
tcltkgrass startup directory any more.

But HOME is o.k., better than /usr/games :slight_smile:

I just fixed the bug. It was the search for wish at the beginning of
tcltkgrass which changes directory to try and find wish files. I simply
saved the current directory before the search and then cd'd back after.
The default directory for the files button is now the directory you
started tcltkgrass from.

Let me know if there are any problems.

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

maybe $LOCATION would be appropriate?

Markus Neteler wrote:

On Wed, Nov 15, 2000 at 08:29:30PM +0100, Andreas Lange wrote:
> Markus,
>
> is it ok if the home directory is used?
> This would require that the enviroment variable HOME is set.
>
> Everything else (how do you define the 'current' directory? The one you
> are in at startup of tcltkgrass?) would be complicated.
This would be perfect. I think it was working like that in
past. Since Moritz comment I am aware that it is not the
tcltkgrass startup directory any more.

But HOME is o.k., better than /usr/games :slight_smile:

Thanks for loking into that,

-- ebm
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| Eric B. Mitchell mailto:emitchell@altaira.com |
| tel: (301) 809 - 3534 Altair Aerospace Corporation |
| tel: (800) 7 - ALTAIR 4201 Northview Dr. Suite 410 |
| fax: (301) 805 - 8122 Bowie, MD 20716 |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
              ,___
          /"\ / o=\ /"""---===/
         / \_/ \__/ ---===/
         | //\ || /""TT""/ //\ || ||""\
         | // \ || || // \ || ||__/
         | //--==\ |L--/ || //--==\ || || "=,
          \ ---===/
           \____---===/

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Hi Eric,

maybe you did not get the mail due to the server problems here
last night: Justin already fixed this bug. Now it's opening
the directory where tcltkgrass was started.

Regards

Markus

On Thu, Nov 16, 2000 at 10:15:52AM -0500, Eric Mitchell wrote:

maybe $LOCATION would be appropriate?

Markus Neteler wrote:
>
> On Wed, Nov 15, 2000 at 08:29:30PM +0100, Andreas Lange wrote:
> > Markus,
> >
> > is it ok if the home directory is used?
> > This would require that the enviroment variable HOME is set.
> >
> > Everything else (how do you define the 'current' directory? The one you
> > are in at startup of tcltkgrass?) would be complicated.
> This would be perfect. I think it was working like that in
> past. Since Moritz comment I am aware that it is not the
> tcltkgrass startup directory any more.
>
> But HOME is o.k., better than /usr/games :slight_smile:
>
> Thanks for loking into that,

-- ebm
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| Eric B. Mitchell mailto:emitchell@altaira.com |
| tel: (301) 809 - 3534 Altair Aerospace Corporation |
| tel: (800) 7 - ALTAIR 4201 Northview Dr. Suite 410 |
| fax: (301) 805 - 8122 Bowie, MD 20716 |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
              ,___
          /"\ / o=\ /"""---===/
         / \_/ \__/ ---===/
         | //\ || /""TT""/ //\ || ||""\
         | // \ || || // \ || ||__/
         | //--==\ |L--/ || //--==\ || || "=,
          \ ---===/
           \____---===/

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

--
Dipl.-Geogr. Markus Neteler * University of Hannover
Institute of Physical Geography and Landscape Ecology
Schneiderberg 50 * D-30167 Hannover * Germany
Tel: ++49-(0)511-762-4494 Fax: -3984

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'