Opened 15 years ago

Closed 8 years ago

#770 closed enhancement (fixed)

Close wxGUI on GRASS CLI exit

Reported by: marisn Owned by: martinl
Priority: minor Milestone: 7.0.4
Component: wxGUI Version: 6.4.0 RCs
Keywords: init Cc: grass-dev@…
CPU: Unspecified Platform: Linux

Description

When user exits from GRASS CLI (terminal), Init.sh should issue a close command to any remaining wxGUI processes.

See r39350 for ideas how it's done in gis.m.

Reported by Martin: http://lists.osgeo.org/pipermail/grass-dev/2009-September/046460.html

Change History (17)

comment:1 by martinl, 15 years ago

Cc: martinl added

comment:2 by cmbarton, 14 years ago

This needs to be done in init.sh I believe.

Michael

comment:3 by neteler, 12 years ago

Milestone: 6.4.06.4.4

Still to be done (both G6 and G7).

comment:4 by mlennert, 10 years ago

Type: defectenhancement

I wouldn't consider this a bug. Reclassifying as enhancement wish.

comment:5 by wenzeslaus, 8 years ago

Please see and try trunk after r66917, r66918, r66920, and r66982 by martinl.

in reply to:  5 ; comment:6 by martinl, 8 years ago

Replying to wenzeslaus:

Please see and try trunk after r66917, r66918, r66920, and r66982 by martinl.

right, I didn't announce yet. I was able to test on Windows 7 (cmd), Debian unstable (bash). Any testing is highly welcome! I would like to backport it to relbr70 before 7.0.3RC1 (January 2016).

I also changed WinGRASS (currently only trunk, standalone installator) to start cmd minimized. I am not sure if it's good idea, it take some time when startup screen appears and user could have feeling that nothing happend (cmd is started minimized) and start GRASS several times. Starting cmd in normal mode is probably better idea in the sense that user has some information that GRASS is starting. On the other side minimized cmd is not so scary for most of Windows users ;-) What do you think?

in reply to:  5 ; comment:7 by martinl, 8 years ago

Replying to wenzeslaus:

Please see and try trunk after r66917, r66918, r66920, and r66982 by martinl.

BTW, these commits enable to close CLI terminal (cmd) automatically when quiting GUI. The ticket reports other issue. To close GUI automaticaly (currently GUI just hangs and become unfunctional) when closing CLI terminal.

comment:8 by martinl, 8 years ago

Milestone: 6.4.47.0.3

in reply to:  6 comment:9 by hellik, 8 years ago

Replying to martinl:

Starting cmd in normal mode is probably better idea in the sense that user has some information that GRASS is starting. On the other side minimized cmd is not so scary for most of Windows users ;-) What do you think?

Launching <wxpython> GUI in the background, please wait...

this line is the important information already in cmd. I may prefer the the normal mode. windows users should be scared of windows, not of grass ... ;-)

in reply to:  6 ; comment:10 by mlennert, 8 years ago

Replying to martinl:

Replying to wenzeslaus:

Please see and try trunk after r66917, r66918, r66920, and r66982 by martinl.

right, I didn't announce yet. I was able to test on Windows 7 (cmd), Debian unstable (bash). Any testing is highly welcome! I would like to backport it to relbr70 before 7.0.3RC1 (January 2016).

I also changed WinGRASS (currently only trunk, standalone installator) to start cmd minimized. I am not sure if it's good idea, it take some time when startup screen appears and user could have feeling that nothing happend (cmd is started minimized) and start GRASS several times. Starting cmd in normal mode is probably better idea in the sense that user has some information that GRASS is starting. On the other side minimized cmd is not so scary for most of Windows users ;-) What do you think?

-1 (to minimizing cmd)

I find it useful to have cmd visible, including for teaching.

Moritz

in reply to:  10 comment:11 by martinl, 8 years ago

Replying to mlennert:

I also changed WinGRASS (currently only trunk, standalone installator) to start cmd minimized. I am not sure if it's good idea, it take some time when startup screen appears and user could have feeling that nothing happend (cmd is started minimized) and start GRASS several times. Starting cmd in normal mode is probably better idea in the sense that user has some information that GRASS is starting. On the other side minimized cmd is not so scary for most of Windows users ;-) What do you think?

-1 (to minimizing cmd)

I find it useful to have cmd visible, including for teaching.

OK, reverted in r67119

in reply to:  7 ; comment:12 by wenzeslaus, 8 years ago

Replying to martinl:

Replying to wenzeslaus:

Please see and try trunk after r66917, r66918, r66920, and r66982 by martinl.

BTW, these commits enable to close CLI terminal (cmd) automatically when quiting GUI. The ticket reports other issue. To close GUI automaticaly (currently GUI just hangs and become unfunctional) when closing CLI terminal.

The GUIs left behind after closing GRASS GIS now seem to be a bigger problem. On thing is that from user perspective the command line and GUI are now more connected. (Fortunately, after r66920, there is no more the danger of terminating a different process.) BTW, I like it much more after r67244.

in reply to:  12 ; comment:13 by martinl, 8 years ago

Replying to wenzeslaus:

The GUIs left behind after closing GRASS GIS now seem to be a bigger problem. On thing is that from user perspective the command line and GUI are now more connected. (Fortunately, after

attempt to solve this issue applied in r67306

comment:14 by martinl, 8 years ago

Milestone: 7.0.37.0.4

in reply to:  13 comment:15 by martinl, 8 years ago

Replying to martinl:

attempt to solve this issue applied in r67306

backported to relbr70 in r67731. Please test.

comment:16 by martinl, 8 years ago

Cc: grass-dev@… added; martinl removed
Owner: changed from grass-dev@… to martinl
Status: newassigned

comment:17 by martinl, 8 years ago

Resolution: fixed
Status: assignedclosed

Tested closing. Feel free to reopen if needed.

Note: See TracTickets for help on using tickets.