mwieder wrote: ↑Sun Jun 23, 2024 6:31 pm
File associations on linux:
Here's what works for me...
Thanks Mark, I really appreciate that info.
I'll test and build that into the file association checks for Linux in-stack, so that it works for every user.
On line 6:
Code: Select all
<icon name="application-x-extension-oxtstack"/>
This is referencing an icon, which is in:
~/.local/share/icons/hicolor/scaleable/application-x-extension-oxtstack.svg
Just checking - Is that the right location?
I also tried with a PNG, rather than an SVG version.
I used the XML you quoted above, but I get some weirdness:

- hmm.png (18.33 KiB) Viewed 2951 times
It sees 'oxtstack' and 'livecode' files as both "legacy LC Stack".
So, I changed the XML to:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-extension-oxtstack">
<comment>OpenXTalk Stack</comment>
<glob pattern="*.oxtstack"/>
<icon name="application-x-extension-oxtstack"/>
</mime-type>
<mime-type type="application/x-extension-livecode">
<comment>legacy LC Stack</comment>
<glob pattern="*.livecode"/>
<icon name="application-x-extension-livecode"/>
</mime-type>
</mime-info>
(line 8 and 11, I put in application/x-extension-livecode instead)
I now get this:

- hmm-2.png (17.74 KiB) Viewed 2951 times
It's closer, as it now differentiates between a 'Livecode' file and an 'oxtstack' correctly, but I thought it should read 'legacy LC Stack' on the 'livecode' file? - that's what the XML would suggest?
If you right click, or double-click the oxtstack files - they are associated with the "OpenXTalk Lite" program.

- hmm-3.png (15.8 KiB) Viewed 2946 times
But, there's no icon associated with it.
I note, there's a file that has appeared called 'icons' in ~/.local/share/mime/ with the following content in:
application/x-extension-oxtstack:application-x-extension-oxtstack
application/x-extension-livecode:application-x-extension-livecode