When using the "xdg-mime default" command, the script looks for the qtpaths binary if you're detected to be on KDE. On gentoo this file is named qtpaths5 Reproducible: Always Steps to Reproduce: Use xdg-mime to change default mimetypes For example, I ran "xdg-mime default firefox-bin.desktop text/html" Actual Results: Output: usr/bin/xdg-mime: line 902: qtpaths: command not found Expected Results: the script should run without error. I was in the air deciding if this should be a bug for qt-dev/qtpaths or for xdg-utils. I decided on xdg-utils because depending on how this is fixed, xdg-utils might need a dependency and USE flag added. The binary in question is called qtpaths at /usr/lib64/qt5/bin/qtpaths, but it's symlinked via qt5-build.eclass as /usr/bin/qtpaths5 dev-qt/qtpaths is not installed by the plasma desktop by default, so a dependency might need to be added, as it's not guaranteed to be available on all plasma systems. This change was added in the following commit upstream, first appearing in the xdg-utils 1.2.1 release: https://cgit.freedesktop.org/xdg/xdg-utils/commit/scripts/xdg-mime.in?h=v1.2.1&id=6f36849cc90f953a80bc4200073ab0c95937208e Output of emerge --info: https://paste.rs/WyRNZ
I just noticed I put the wrong package in the title. The package in question is x11-misc/xdg-utils-1.2.1-r2, not xdg-mime which does not exist.