Debug mode for new, non-distro installed applications
When user tries to launch app first time, many thinks could happen wrong. The idea will address only to binaries/desktop files without executable bit set. Actually, when launch, warning dialog appears with asks to confirmation of open. Next time, it would not display, because app has executable bit. Idea is to:
- Launch in special mode, when dialog appear
- Redirect stderr to file
- Ask if everything goes good, when app stop working - remove executable bit if user decided there was some errors
- Allow user to shown file with data sent to stderr, when app stop working
What this special mode does? It will, for example, launch app with special variables to do more debugging. For example, we can pass LD_BIND_NOW=1, pass G_DEBUG=1, execute printenv before running and pass output to stderr, enables mangoo hud to test framerates in game, generate link to bugzilla to open/search for ticket related to current program (based on information from desktop file or hash of executable), etc. Possibilities are many. Reason is to help people find out, what goes wrong and if something goes wrong.