When a GUI program malfunctions in some way (crashes, etc.) I often use the trick of running it from the command line (instead of from the menu). That way I see the messages it outputs to
stderr which sometimes gives me a clue as to what went wrong (or at least a message I can Google to take me further down the "solution path").
Is there any way I can get all GUI programs to save their
stderr somewhere so I can diagnose problems without having to start them from the command line? Not only would this be more convenient, it would help users who don't know about this trick.