Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DAY 029: _EXIT
#8
Lightbulb 
Maybe it could be fixed with "$CONSOLE:ONLY". Otherwise, the "dummy console" that is the result of "SHELL", while summoning another program, might be subject to "_EXIT" to prevent the user from "accidentally" killing the other program or causing the other program to hang. This is critical on Linux in which sometimes an app is launched from the terminal. If the terminal is closed, so is the program that is launched from it.

I should have tested that the short while I was on Windows, errr...



At least it works for me on Manjaro KDE:

Code: (Select All)
dim q as long
print "Please wait while I launch Mozilla's monster..."
q = _EXIT
SHELL _DONTWAIT "firefox"

print "Press [ESC] to exit."
print: print
do
    _limit 100
    q = _EXIT
    if q > 0 then
        print "No you may *not* exit in this way! Please press [ESC] instead!"
        print: print
    end if
    ke$ = inkey$
loop until ke$ = chr$(27)

But it's not the "SHELL" function, yes I know.

Funny that I got this message on terminal after this user program ended:

Code: (Select All)
ATTENTION: default value of option mesa_glthread overridden by environment.

EDIT: AAARGH! Got outfoxed by the one I was trying to outfox. I tried taking off the "_DONTWAIT" from the code above. Briefly it gave the message that it was going to start Firefox. Once that app was in place, however, the user program window suddenly turned into a clear lighter black with nothing in it. Pressing "X" in the top-right corner of that window did nothing. Taking away "_EXIT" produced the same behavior. Except with this user program, after I closed Firefox the user program window did respond and refused to allow clicking the icon to close the window and program, had to press escape key.
Reply


Messages In This Thread
DAY 029: _EXIT - by Pete - 12-10-2022, 05:41 AM
RE: DAY 029: _EXIT - by SMcNeill - 12-10-2022, 06:08 AM
RE: DAY 029: _EXIT - by vince - 12-10-2022, 07:10 AM
RE: DAY 029: _EXIT - by Pete - 12-10-2022, 07:21 AM
RE: DAY 029: _EXIT - by Pete - 12-10-2022, 07:17 AM
RE: DAY 029: _EXIT - by mnrvovrfc - 12-10-2022, 07:30 AM
RE: DAY 029: _EXIT - by Pete - 12-10-2022, 07:55 AM
RE: DAY 029: _EXIT - by mnrvovrfc - 12-14-2022, 10:12 AM
RE: DAY 029: _EXIT - by Pete - 12-14-2022, 09:42 PM



Users browsing this thread: 1 Guest(s)