Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
On windows wesnoth creates logfiles that contain the output of stderr, on linux that does afaik not happen. I don't know whether its my lack of linux knowledge but when i recently started wesnoth normally (here this means: form the desktop launcher with no console attached) and got an error then i had no idea how to get the output that was written to stderr, a situation that can no happen on windows due to the logfiles.
Even if linux somehow does supports recovering the stderr output of a non-termianl programm that did already run, i really don't expect users from who i might want bug reports to be able to figure out how to do it if i am unable to do it myself.
So what i propose it: generate logfiles on linux just as we do on windows.
Whoever tackles this can reuse the code in
In the meantime, you can just make your launcher use a command like this:
And to keep the terminal output when launching from a terminal:
(If launching directly from a terminal then you can skip the