Add support for running from CLI without Gtk