@mntmn now i notice it's called an "ugly" hack? Like it's a small program doing one thing, the PKGBUILD says it needs only `qt5-base` and `hicolor-icon-theme`, so pretty good on the dependency side.
In the source code it says the .desktop file parsing is ugly. And not many comments. (also it's a bit _too_ simplistic, some keywords arguments, help&manpage, about thingy would be good)
But a complicated constellation of huge programs people are heavily invested in would be uglier?..
@mntmn Site says this is an "ugly hack" but it's actually pretty good. The best I've seen for this is just using xdg-mime and some scripting around it.