Debian Bullseye. XFCE version 4.16. LibreOffice version 7.0.4.2
I have a file, foo.xml. I have a LibreOffice Writer document that contains a hyperlink to the said foo.xml file. When I ctrl-click on the link, I want foo.xml to be opened using Mousepad. However, it always opens with LibreOffice Writer.
It is interesting to note that, if I navigate to said foo.xml file's parent directory using Thunar, clicking on same will open said file using Mousepad.
I've tried xdg-mime default mousepad.desktop text/xml and gio mime text/xml mousepad.desktop with no joy.
How can I force LibreOffice Writer to open hyperlinks to simple .xml files using Mousepad?
xdg-mimeandgioand spent time asking some LLM. What approaches did you try that failed? How can we know we aren't telling you to try the same things again?