01.12.2020 23:12, Andrei Borzenkov пишет:
Now in your case system-wide default files are not touched and you do not refresh system-wide desktop entry cache so xdg-mime query does not find your application when run as root.
Apologies, I somehow remembered that command returned nothing for root. Just realized I was wrong. But still answer is the same - under root you get system-wide configuration and under user you get user-specific configuration.
Apparently your user *does* have set default handler for this MIME type, but desktop file for this handler (probably also in local user directory) contains error and specifies /usr/uti/mmviews instead of /usr/uti/mmview.
If you run update-desktop-database, "xdg-mime query" should return correct information under root, but it will most likely still return the same error under user because user specific configuration has priority over system-wide.
So to answer your question in original post:
how do I configure a mime type for alle users under opensuse Leap?
You already did it, but each user is free to override system-wide default configuration and you as system administrator have no control over it that I am aware of (short of making user's home directory read-only). It is