site  contact  subhomenews

Fix mime-handling for SolveSpace

December 28, 2019 — BarryK

A SolveSpace file, when seen in ROX-Filer, should display with it's mime-type icon, and clicking on it should open it with the SolveSpace application (or right-click on it, there should be the offer to open it with SolveSpace).

Firstly the mime-type icon. It is there, but there is a typo. Go to /usr/local/apps/ROX-Filer/ROX/MIME (you have to right-click on folder "ROX-Filer" and choose "Look inside"). Rename 'application.x-solvespace.png' to 'application-x-solvespace.png'.

Buster 2.2 has /usr/share/mime/packages/solvespace.xml, but it is wrong. Pyro 1.3 does not have that file. This is required for 'solvespace.xml':

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">

<mime-type type="application/x-solvespace">
<comment>SolveSpace file</comment>
<glob pattern="*.slvs"/>
</mime-type>

</mime-info>

Then, update the mime database:

# update-mime-database /usr/share/mime
Now, there will be correct mime-handling of SolveSpace files in ROX-Filer.  ....oh, yeah, I forgot, 'update-mime-database' is in the devx SFS, so you will have to load that first. 

Tags: easy