Setting default program for .step files

Hi everyone!

For some reason I can’t figure out how to set FreeCAD as the default program for .step files without setting FreeCAD as the default for all text files. What am I missing?

Hello and welcome,

Maybe something like

xdg-mime default FreeCAD.desktop text/step

OR

xdg-mime default FreeCAD.desktop application/step

OR

xdg-mime default FreeCAD.desktop x-scheme-handler/step

( I dont use any of the CADs and cannot say for sure. )

I gave those a try but I kept getting “/usr/bin/xdg-mime: line 885: qtpaths: command not found”

I managed to get it working through Default Applications → File Associations → Add → “step file” → Filename Patterns.

I haven’t used KDE since 2004 so it’s about re-figuring out how things are done.

Thanks!

Oh interesting.
That is a (at least a packaging) bug then.
qtpaths is provided by qt5-tools but is not part of the depends.
It probably should be updated to use the qtpaths or qtpaths6 from qt6-base or something.
Or if none of that then the dependency addition needs to be made to the package.

But that is all something for the maintainers to deal with.

Glad you got it working through the regular easy approach.