#500: GUI menu item to swtich GUIs
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
Type: enhancement | Status: new
Priority: major | Milestone: 6.4.0
Component: default | Version: 6.4.0 RCs
Keywords: gui | Platform: All
Cpu: All |
-------------------------+--------------------------------------------------
Hi,
currently there is no easy way to switch the default GUI from a GUI.
e.g. from the native windows build you typically don't start from a
command prompt so `grass64 -wxpython` isn't an easy option. If you know
how you can do Config -> Settings -> GRASS working environment -> Change
settings -> GRASS variable to set -> "GRASS_GUI=wxpython"
in the GUI, but that's hardly something that someone could figure out on
their own.
To make this easier, I've added a new flag to g.gui to update default GUI
but do not launch it. (done in r35972, r35973)
The GUI menus would need to launch "g.gui -n --ui", or a wrapper fn for
g.gui (bash/python template: 'g.gui --script') with the -nu flags
hardcoded and only the type pulldown menu available. Then exit with a "you
need to restart grass to see the effect" message.
#500: GUI menu item to swtich GUIs
--------------------------+-------------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
Type: enhancement | Status: new
Priority: major | Milestone: 6.4.0
Component: default | Version: 6.4.0 RCs
Resolution: | Keywords: gui
Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment (by hamish):
further g.change.gui & added to devbr6 menus in r36030.
please test! (especially to/from wxPy gui where I haven't tested it at
all)
note .grassrc6 file will only be updated when you exit GRASS cleanly, but
g.gisenv setting will be updated immediately. (earlier strangeness was
probably just me looking in the wrong place)
#500: GUI menu item to swtich GUIs
--------------------------+-------------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
Type: enhancement | Status: new
Priority: major | Milestone: 6.4.0
Component: default | Version: 6.4.0 RCs
Resolution: | Keywords: gui
Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment (by hamish):
more weirdness, I can't change it from the d.m GUI or from the command
prompt with --ui. But it works from from gis.m and the command line with
an argument.
#500: GUI menu item to swtich GUIs
--------------------------+-------------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
Type: enhancement | Status: new
Priority: major | Milestone: 6.4.0
Component: default | Version: 6.4.0 RCs
Resolution: | Keywords: gui
Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment (by hamish):
back/ported to relbr64 and trunk in r36093, r36094; weirdness remains: I
can't change it from the d.m GUI or from the command prompt with --ui
using g.change.gui.sh. But it works fine from from gis.m and the command
line with an argument.
In d.m I just get a red "X" in the output tab.
oh well, it works in d.m if I pass it plain g.gui instead of the
simplified g.change.gui.sh wrapper script (done in r36095, r36096), and I
doubt anyone will try `$GISBASE/etc/gui/scripts/g.change.gui.sh` very
often from the CLI as "g.gui" is somewhat easier to type.
+if [ ! -x "`which $(basename "$0")`" ] ; then
+ PATH="$PATH:$GISBASE/etc/gui/scripts"
+ export PATH
+fi
+
if [ "$1" != "@ARGS_PARSED@" ] ; then
exec g.parser "$0" "$@"
fi
}}}
???
Running it from the wxPython GUI still needs to be tested by someone
please. Config -> Working enviro -> Change default GUI
Also, I was thinking it could be useful to add an entry after 'Help->About
system' like 'Help->Show system environment' which would run "set" and
dump the results to the Output window. It would help in debugging.