When, on Linux, running graphical programs (such as Sublime Text for example) from the Terminal, the program runs fine but logs on the console messages that are not exactly failures, nor useful log messages, just "stuff" such as:
(sublime:15269): Gtk-WARNING **: Unable to locate theme engine in module_path: "oxygen-gtk", (sublime:15269): GLib-CRITICAL **: Source ID 958 was not found when attempting to remove it
... which are problematic when running the program in background and continuing to use the Terminal.
What is the best practice to remove this?
I thought of replacing the binary with a script that wraps the binary startup but suppresses all output (
> /dev/null 2>&1), but is there not a cleaner way to do so?