This will be necessary for newer Qt6 based versions of Discover to keep working with snaps.
Also see: https://github.com/snapcore/snapd-glib/issues/142