On Sat, Aug 01, 2015 at 03:28:03AM +0100 I heard the voice of
Aaron Sloman, and lo! it spake thus:
>
> For now I am experimenting with this messy solution:

Actually, from here, that sounds like the _clean_ solution.
Similarly, I don't have a f.restart anywhere in my menus; I have a
custom f.newrestart since I run a `make` as part of the restarting to
build the config files.


> This is not a general enough solution because it is still possible
> to kill ctwm accidentally and the xterm will not be launched.

I dunno.  Tying it to anything but f.quit isn't going to be reliable;
e.g., if ctwm segfaults, we're in no condition to do much of anything.
And that feels more cleanly done via wrapping than via injection.


FWIW, I many years ago added an extra menu level to avoid accidentally
exiting (which I _totally_ didn't do several times in one day prior to
adding it).  e.g.,

menu "twmstuff"
{
    [...]

    "Exit        "    f.menu "exit"
}

menu "exit"
{
    "Exit?      "    f.title
    "           "    f.nop
    "Yes, dammit"    f.quit
}

So I have to follow it into a submenu, and then move down past the nop
to actually exit, which makes it real hard to do accidentally.  Useful
trick.


-- 
Matthew Fuller     (MF4839)   |  [email protected]
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.

Reply via email to