30.11.2020 18:42, Daniel Spannbauer пишет:
Hello,
we have a filetype with ending "fsp" ,which should be opened with a special application.
I created a xml-file and registered the type "application/x-fsp" with "xdg-mime install"
I also created a Desktop-file /usr/share/applications/mmview.desktop , which has an entry "MimeType=application/x-fsp"
You did not tell Leap version, you did not tell desktop environment you are using, you did not show xml file, xdm-mime invocation or mmview.desktop file. Basically, zero data to make any guess about what could go wrong.
When I call "xdg-mime query default application/x-fsp" as my user, I get "which: no mmviews in (/usr/uti)"
If this is really full and complete error message it implies your user has PATH set to /usr/uti, at least during xdg-mime invocation. In any case, message means xdg-mime failed to locate binary specified in desktop file.
If I call it as root, I get "mmview.desktop".
May be root and your user have different PATH.
How do I configure a mime type for alle users under opensuse Leap?
xdg-mime should do it when invoked as root.