You are not logged in.
Pages: 1
Consider the following output:
➜ file --mime-type paper.html
paper.html: text/html
❯ handlr mime paper.html
┌────────────┬───────────┐
│ path │ mime │
├────────────┼───────────┤
│ paper.html │ text/html │
└────────────┴───────────┘
➜ xdg-mime query filetype paper.html
application/xhtml+xmlI want Dolphin (the KDE file manager) to show custom entry in the "Open With" sub-menu of the right click context menu.
If, in my custom .dekstop file under ~/.local/share/applications, I use "text/html" mime type, the custom entry is not shown.
If instead I use "application/xhtml+xml" it is shown.
Why xdg-mime returns a different result than file, and where it is documented that Dolphin uses xdg-mime and not file?
Offline
-i, --mime
Causes the file command to output mime type strings rather than the more traditional human readable ones. Thus it
may say ‘text/plain; charset=us-ascii’ rather than “ASCII text”.--mime-type, --mime-encoding
Like -i, but print only the specified element(s).
Note that graphical applications use xdg mime applications, but console apps have their own method to link types and actions .
https://wiki.archlinux.org/title/Default_applications and https://wiki.archlinux.org/title/XDG_MIME_Applications should help to get an idea how things work
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Thanks for the explanation.
Was very useful.
Offline
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Online
Pages: 1