<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Nov 30, 2014 at 5:42 PM, Vaclav Petras <span dir="ltr"><<a href="mailto:wenzeslaus@gmail.com" target="_blank">wenzeslaus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span class=""><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 28, 2014 at 4:43 AM,  <span dir="ltr"><<a href="mailto:svn_grass@osgeo.org" target="_blank">svn_grass@osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow:hidden">+    env = grass.gisenv()<br>
+    mon = env.get('<span>MONITOR</span>', None)<br>
+    if not mon:<br>
+        grass.fatal(_("No graphics device selected. Use d.mon to select graphics device."))</div></blockquote></div><br></div></span><div class="gmail_extra">Is this correct? I'm asking because d.shade(dmap) does not work in wxGUI now; ends with this error. It was working before as well as the other d.* commands, so the environment is set correctly it seems. Maybe the question is what is the correct environment settings (both GRASS GIS and system).<br></div></div></blockquote><div><br></div><div>Accidentally, I got error message which lead me to partial fix in r63306.<br><br>After running `d.mon cairo` in terminal, I get in wxGUI<br><br>Details: MONITOR variable defined, GRASS_RENDER_IMMEDIATE ignored<br></div></div><br></div><div class="gmail_extra">I guess that any of MONITOR in GRASS GIS environmental file and GRASS_RENDER_IMMEDIATE is sufficient for running d.* commands. I think the modules before r63227 which had the monitor check are not meant to run from wxGUI directly; at least some of them are caught by GUI and executed differently.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">I think that the behavior I got in wxGUI might be a bug since nothing was rendered but I don't understand what are the valid states of all variables.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Vaclav<br></div><div class="gmail_extra"><br><a href="http://trac.osgeo.org/grass/changeset/63306">http://trac.osgeo.org/grass/changeset/63306</a><br></div></div>