g.gui.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <h2>DESCRIPTION</h2>
  2. The <em>g.gui</em> module allows user to start the Graphical User
  3. Interface (GUI) from the command line prompt or to change the
  4. default User Interface (UI) settings.
  5. <p>
  6. GRASS GIS 8 comes with both a wxPython-based GUI
  7. aka <em><a href="wxGUI.html">wxGUI</a></em> (<b>ui=wxpython</b>) and
  8. command line text-based UI (<b>ui=text</b>).
  9. <h2>NOTES</h2>
  10. If the <b>-d</b> update flag is given or the <tt>GRASS_GUI</tt>
  11. environmental <a href="variables.html">variable</a> is unset, then
  12. the GRASS internal variable <tt>GUI</tt> is permanently changed and
  13. the selected <b>ui</b> will be used as the default UI from then on.
  14. <p>
  15. All GRASS internal variables (see <em><a href="g.gisenv.html">g.gisenv</a></em>)
  16. are stored in the user's home directory in a hidden file called
  17. <tt>$HOME/.grass8/rc</tt> on Unix-based operating systems
  18. and <tt>%APPDATA%\GRASS8\rc</tt> on MS Windows. Note that these GRASS
  19. internal variables are not the shell environment variables and the
  20. <tt>rc</tt> file is not a classic UNIX run command file, it just
  21. contains persistent GRASS variables.
  22. <h2>EXAMPLES</h2>
  23. <h3>Set default user interface settings</h3>
  24. Set default user interface setting to command line, text-based UI:
  25. <div class="code"><pre>
  26. g.gui -d ui=text
  27. </pre></div>
  28. <p>
  29. Set default user interface setting to the graphical user interface
  30. (GUI) and <i>launch</i> the GUI:
  31. <div class="code"><pre>
  32. g.gui -d ui=wxpython
  33. </pre></div>
  34. <p>
  35. Set default user interface setting to the graphical user interface
  36. (GUI) but <i>do not launch</i> the GUI:
  37. <div class="code"><pre>
  38. g.gui -dn ui=wxpython
  39. </pre></div>
  40. <h3>Load workspace from command line</h3>
  41. Start the GUI from command line with an existing workspace:
  42. <div class="code"><pre>
  43. g.gui workspace=myproject.gxw
  44. </pre></div>
  45. <h2>SEE ALSO</h2>
  46. <em>
  47. <a href="wxGUI.html">wxGUI</a>,
  48. <a href="g.gisenv.html">g.gisenv</a>,
  49. <a href="variables.html">GRASS variables</a>
  50. </em>
  51. <p>
  52. <a href="https://grasswiki.osgeo.org/wiki/WxPython-based_GUI_for_GRASS">wxGUI wiki page</a>
  53. <h2>AUTHORS</h2>
  54. Martin Landa, FBK-irst, Trento, Italy<br>
  55. Hamish Bowman, Otago University, Dunedin, New Zealand (fine tuning)