The wrapper used depends of the environment, the previous one was under a command line clean instance, on a GNOME based desktop
$ XDG_UTILS_DEBUG_LEVEL=1 xdg-mime query filetype index.html Running gio info "/tmp/index.html" text/html -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info in Ubuntu. https://bugs.launchpad.net/bugs/1890716 Title: xdg-mime query filetype index.html reports wrong type To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/1890716/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs