4

I'm getting loads of Evince warnings when running it from the terminal. E.g.

(evince:4599): GVFS-WARNING **: can't init metadata tree /home/nivaca/.local/share/gvfs-metadata/home: open: Permission denied

(evince:4599): GVFS-WARNING **: can't init metadata tree /home/nivaca/.local/share/gvfs-metadata/home: open: Permission denied

** (evince:4599): WARNING **: Error setting file metadata: can't open metadata tree

(evince:5001): Gtk-CRITICAL **: gtk_widget_show: assertion 'GTK_IS_WIDGET (widget)' failed

I've searched everywhere how to fix this problems, but I haven't been able to do so.

Thus, what I want now is to silence these warnings, as they unable me to see what's really going on with my other processes in the terminal.

Is there any way to do this?

NVaughan
  • 503
  • 1
  • 5
  • 14

1 Answers1

1

I don't necessarily recommend this course of action, but you could put something like:

alias evince='evince 2>/dev/null'

which will remove all standard error from evince. I think that the minor annoyance of seeing them is better than the one time evince will actually fail and won't tell you why, but it is an option.

You could also do something fancier if you use bash, like:

alias evince='evince 2> >( grep -v "evince.*WARNING" >&2 )'

to filter out specific lines from standard error. This may be more safe, but I'm not necessarily endorsing it.

Erik
  • 126
  • 2