Ticket #500 (closed enhancement: fixed)
GUI menu item to swtich GUIs
| Reported by: | hamish | Owned by: | grass-dev@… |
|---|---|---|---|
| Priority: | major | Milestone: | 6.4.0 |
| Component: | Default | Version: | 6.4.0 RCs |
| Keywords: | gui | Cc: | |
| Platform: | All | CPU: | All |
Description
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.
Hamish
