Just use the underlying GLib functions directly. https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/54