xfce – LibreOffice Writer Opens Linked XML File Only With LibreOffice Writer

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 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 fooled around with xdg-mime and gio, and have spent a few hours with my pal, Gemini, with no joy!

How can I force LibreOffice Writer to open hyperlinks to simple xml files using Mousepad?

Read more here: Source link