On 10/13/2017 02:22 PM, Bruce Dubbs wrote:
I run a lot of commands from the command line. Many of the graphical applications such as gedit use glib. I get a ton of spam on the terminal when I run them that look like: (gedit:5700): Gtk-WARNING **: ... I've written a patch to allow the user to skip these messages if desired. What you do is patch -Np2 ../glib.patch Continue with regular glib build/install This patch should change nothing unless the environment variable GLIB_LOG_LEVEL is set. The values are numeric: 0 Emergency 1 Alert 2 Critical 3 Error 4 Warning 5 Notice 6 Info 7 Debug So if you want to disable messages at the Warning level or above, you use: export GLIB_LOG_LEVEL=4 I'm asking for feedback to see if this is worth putting in BLFS or perhaps offering it upstream. Feedback welcome. -- Bruce
Sounds nice, yet to try it, but will tonight. Gnome devs are pretty receptive to patches...in git format-patch -1. So fork, change, add, commit, diff, submit bug. Make your commit message clear and concise and they will just use it verbatim. They mirror to github, https://github.com/gnome/glib so easy enough to do the repo work there, but still must be on the main bug tracker (not github).
--DJ -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
