What non-GUI programs (daemons) use glib?
I use glib quite a bit in non-GUI programming, especially for FUSE filesystems. Lots of routines to complement glibc, things like hash tables, a linked list implementation, a cross-platform threading library - lots of useful stuff for general-purpose programming. I think of it like C's version of Boost.
On my Ubuntu system apt-cache rdepends libglib2.0-0 gives me, among many others:
This lists package rather than actual binary dependencies; it's possible (but I don't think likely) that some of these packages ship GUI applications that depend on glib.
Let's take, say, consolekit and verify:
dpkg -L consolekit
tells me the daemon is /usr/sbin/console-kit-daemon, and ldd /usr/sbin/console-kit-daemon
tells me it depends on libglib, libgthread, libgmodule, libgobject, libgio, but no GUI stuff. So here you are, a genuine daemon using glib.
Irssi, an IRC client with support for scripts.
GStreamer is built upon GLib/GObject.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With