From Nathaniel Mason to ~kennylevinsen/greetd-devel
On a vt switch, greetd always redirects stdout and stderr to the new vt. On graphical sessions this means that the output ends up under the framebuffer, mostly inaccessible without some slightly awkward shell redirections in the session command. I would like to suggest the addition of a flag that persists the stdout and stderr of the parent process, so output can more easily be captured and redirected to logfiles. I have managed to patch my own local version of greetd to allow this behavior, and I'm more than happy to submit this patch if there's agreement that this feature is welcome. Although this patch is a little messy as it has to pass a boolean between every function in the path from initializing the config to spawning processes. Which leads me to wonder if the current config handling should be replaced with a lazily-evaluated static.