Where does stdout from applications go to when started in gnome (F20)?
When I start an application in gnome (F20), I want to see what it has written to stdout/stderr if it behaves strangely. Of course, I can start it in a terminal. But then I'd have to know beforehand that the application will behave strangely later. (Or I start everything in a terminal by default which is not really an option.)
Searching for this in the web, I found some interesting answers, but obviously they are all outdated. Traditionally, output used to go to $HOME/.xsession-errors (actually, I knew about that one, but it isn't there any more). I also found some patch that seems to have replaced that with $XDG_HOME/.cache/gdm/session.log (doesn't exist either). In Ubuntu, the output currently seems to end up in $HOME/.cache/upstart/gnome-session.log (but F20 uses systemd). Of course, I checked the output of journalctl, nothing there. Any hint appreciated.
gdm puts the logs in the system journal (c.f. this ), I tested by starting konqueror and went to "info:coreutils", the same kind of errors I used to see in ~/.xsession-errors were displayed in the systemd journal.
I cannot think why you don't have an
.xsession-errors
file, but I have. (Fedora 20). Only the stderr goes there (I guess from the name).Note that starting an application in a terminal is not the same as starting it with Gnome menu (terminal is attached or not). If you want to mimic starting application with gnome - launch the desktop file with
gtk-launch
as described here: https://ask.fedoraproject.org/en/question/31805/ . I can also see that there are indeed some log files (per application) underfind ~/.cache -name "*.log"