So, if I run a program through the menus in gnome-shell, is there a way to view stdout and stderr? Or is there some kind of hack to achieve this functionality?

Or is everything just sent to /dev/null?


Usually, gdm/session start-up scripts redirect stderr & stdout to either:




With systemd and recent gdm versions, everything is redirected to systemd journal, so one way to get that output is:

journalctl -b _PID=$(pgrep gnome-session)
| improve this answer | |
  • I think gnome-session doesn't necessarily run anymore (I'm on gnome 3.14, because pgrep doesn't find it, though I'm definitely in gnome ;) – ufotds Feb 9 '15 at 5:09
  • @ufotds - it all depends on your particular setup, but on a normal gnome setup it definitely runs (I'm on a vanilla gnome 3.14.2 install and pgrep gnome-session works fine). – don_crissti Feb 9 '15 at 10:20

The command suggested by don_crissti didn't show anything for me, but I just do:

journalctl -f

in a terminal tab that I always leave open (and opens automatically on boot) so I have realtime feedback of all logging from systemd on my computer.

If desired, you can use the match filters from journalctl to limit the noise, but for now I like to have everything at hand.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.