I'm not a C++ programmer, but I've pretended (badly) to be one in the past.
I've a patch for blackbox 0.65 which gives some support for 'epilogue' code
to be executed when blackbox is asked to terminate. If a non-zero exit code
is given by the epilogue code, blackbox should not exit and should use
xmessage to display some reason. I use it to prevent exit when certain apps
are still running under the wm.
I tried converting the patch for 0.70 cvs and inserted it into Rootmenu.cc.
Can anyone tell me what sort of lamo thing I've done? blackbox terminates
and doesn't seem to run the 'system' command.
------------------------------------------------------------
case BScreen::Exit:
if (! it->second.string.empty() ) {
int retc;
char * usern;
retc = system(it->second.string.c_str());
if ( retc != 0 ) {
std::string nxmsg = "xmessage -timeout 7 -center -file /tmp/";
usern = getenv( "USER" );
nxmsg += usern;
nxmsg += ".bbepi";
bt::bexec( nxmsg, _bscreen->screenInfo().displayString() );
break;
}
}
_bscreen->getBlackbox()->quit();
break;
--
************************************************************************
* Dave Serls Littleton, CO, USA *
* dashs.denver.co.us sorrybiscuit.com *
************************************************************************
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
List archives: http://asgardsrealm.net/lurker/splash/index.html
Trouble? Contact [EMAIL PROTECTED]