JakeSFR wrote: Sun Mar 17, 2024 2:20 pm
@MochiMoppel: I was going to add some MIME types to the main desktop file, but noticed strange things happening.
Those strange things you describe happen in Firefox, but you wrote earlier
JakeSFR wrote: Sat Dec 09, 2023 6:56 pm
Well, both UExtract and PackIt are meant primarily as ROX right-click apps, so there's no postponing anything, everything's as intended. And they definitely weren't designed as Firefox's or anything else's handlers. 
So I now wonder why you are concerned about the behavior in Firefox. I assume that you tested in Fatdog. Strange that you see an effect at all. Here in BW64 I use LibreWolf. The browser seems to disregard /usr/share/applications/mimeinfo.cache. E.g. a typical line in mimeinfo.cache would read
Code: Select all
application/x-tar=pextract.desktop;UExtract.desktop;xarchiver.desktop
When trying to open a tar archive in LibreWolf I'm given a choice like in a Russian election: Though with pextract, UExtract and xarchiver there are 3 candidates, LibreWolf offers "Default archiver (default)" and also Xarchiver under "Recommended Applications". Default archiver is the name for defaultarchiver file, which in turn is a wrapper script for Xarchiver. So I have the choice between Xarchiver and Xarchiver
I can change the default in /usr/share/applications/mimeapps.list
, but that's about the only file that has any effect on the handler choices presented by the browser. There are also defaults defined in /etc/pmime.conf
, probably created by the /usr/sbin/pmime
script, but these settings are ignored by the browser.
So yes, in the browser MIME handlers are a mess. Only relevant if the user wants the browser to open an archive, irrelevant if the user instructs the browser to download the archive - which is the default behavior.
As for applications other than browsers everything works as expected in BW64. Here by default MIME declarations are included in the (main) UExtract.desktop file. No related files are created in ~/.config/rox.sourceforge.net/SendTo
. I know that you don't like this. I still don't know why. It works 