[xubuntu-users] Hundreds (thousands maybe) of nm-applet error messages in .xsession-errors

lefty leftystrat1 at gmail.com
Sat Dec 7 05:39:09 UTC 2019


On 12/5/19 4:22 PM, Chris Green wrote:

> The .xsession-errors file is getting rather large very quickly, it has
> grown to 8Mb in not much over 24 hours.  A large proportion of the
> errors in .xsession-errors are from nm-applet:-
> 
>      (nm-applet:1573): Gtk-CRITICAL **: 20:15:43.847: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
>      (nm-applet:1573): Gtk-CRITICAL **: 20:15:43.847: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
>      (nm-applet:1573): Gtk-WARNING **: 20:15:43.858: Can't set a parent on widget which has a parent
> 

> I know these aren't that serious, the system still functions OK, but
> at the very least they tend to mask more serious issues by making
> .xsession-errors so large.

Would you like to view the file without these lines?

grep -v "unwanted_word" file | grep XXXXXXXX

-v reverses, so it finds everything BUT "unwanted_word"
The part to the left of the pipe | should do the trick. To the right of 
the pipe allows you to look FOR certain things in addition.

If you want to watch the file live, you can use tail -f file | grep -v 
"unwanted_word"

I guess you can also use the above to list the lines, then > it to a 
file name.  grep -v "unwanted_word" file > xsession_custom  will give 
you a new file without the annoying lines.

I can't tell you about bugs or how to fix the issue. Just a workaround. 
You can use regex with grep also.


Good luck.




More information about the xubuntu-users mailing list