Joined: July 2004
||Posted: May 01 2008,03:12
I don't see why you'd want to unset the DISPLAY variable. The error dialog that mydsl-load provides is a desired behavior. The error dialog I was getting was one that was part of this script. It was not working properly, however, because of the issue you mentioned...applications running in an X terminal do not return to the shell that started the terminal.
Your idea of redirecting the output of the last command is a good one, but I'm not sure if it will work in this case. It might at least require unsetting the DISPLAY variable in order to prevent a second terminal, meaning I'd still need to have my own error dialog, which is the exact thing I'm looking to prevent. Since that function is already in place in DSL, I'd prefer to use it rather than mimic it. I'll have to run some tests. Any way I look at it, though, it seems like there will be some redundancy...either in presenting the dialog or doing the md5sum test myself.
Although, with the read command + unsetting DISPLAY, the user will be presented with the success or failure message in that term, without the need for a FLTK message or md5sum check. Interesting idea....I wish I hadn't typed all that out before realizing what you were getting at....