I have/had a patch for 0.65 which has not been submitted to sourceforge.
It allows the specification of an epilogue program/script to be specified
on the [exit] statement of the main menu. This app is invoked when the
user selects the [exit] statement. If it returns non-zero, the termination
is aborted and an xmessage is given, otherwise termination proceeds.
I use it to check that I am not terminating an application which might
need to be shut down more gracefully ( sylpheed, for instance ).
I also use it to run (via the epilog app) 'gconftool --shutdown' to clean up
after the gnome runtime.
My problem is, my knowledge of c++ is so poor that I cannot adapt the patch
to 0.70.
I've tried to transfer the patch
which replaces the Exit method in Rootmenu.cc with:
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;
}
}
But it seems to be ignored.
I'm thinking that second.string isn't stored for the 'exit' item on 0.70.
--
************************************************************************
* 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]