By default, there is no $DISPLAY environment variable set on Windows.
Windows does not have an X server installed by default. There are
a few on the market that you can purchase, if so interested. If you
are checking for a $DISPLAY env. var., you probably only want to do
so if you're not running on Windows anyway.
However, on Windows, you also have the (potential) problem of how
to start a grass5 environment. This would probably best be
accomplished with a batch file, as you don't have to stress about
the gross platform dependencies. We do this at work: shell
scripts for the unix platforms, batch files for Windows. It seems
to work ok.
Andreas Lange wrote:
Hi Justin, Hi Eric,
the $DISPLAY is IMHO the best solution to the discussed problem.
Check if $DISPLAY is set and you know for sure that X is running.
If you next search for the wish executable in the user path i think that
in most of the cases this should work and we can start with the GUI
first. Otherwise a fallback to text mode would be ok.
This applies to the windows setup too, as the DISPLAY variable is set
only if X is running (The X server seems still to be a little unstable).
I'll check for the name of wish/tk shell in cygwin later.Thanks Eric for this idea.
I agree that it is desirable to start up with a nice GUI. Most software,
even if using commands typed in a window, uses a GUI today.Andreas
Justin Hickey wrote:
>
> Hi Eric
>
> "Eric G . Miller" wrote:
> > One thing you should consider too, is checking if the $DISPLAY
> > environment variable is set. Could be a user is running in a console
> > only mode (console, telnet, ssh with no X forwarding). Haven't a clue
> > about Windows in this regard.
>
> Oooh! Good catch, I never thought of that one. I'll look into it. Does
> this problem even apply on Windows?
>
> Thanks.
>
> --
> 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'--
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'
--
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| 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'