xdg-mime: 1247: [: kde: unexpected operator
I get this error when using dash
as my default shell. Works fine with bash. However, xdg-utils scripts are using the default shell #!/bin/sh
and not bash explicitly, so they must adhere to POSIX shell standards or explicitly use bash.