handlr icon indicating copy to clipboard operation
handlr copied to clipboard

sphere files (.sph)

Open nikvaessen opened this issue 2 years ago • 0 comments

Hi, thanks for your work on handlr!

By default, .sph files are opened as text files on my install, so I wanted to figure out a solution to open them with mpv by default. I ended up trying out handlr to solve this for me.

I get stuck with the following error:

$ handlr set .sph mpv.desktop 
error: Invalid value for '<mime>': could not figure out the mime type of '.sph'

I don't understand how to solve this error. I've also tried setting */sph, which does work partially, resulting in:

$ handlr list
┌─────────────────────────────────────────┬────────────────────────────────────┐
│ */sph                                   │ mpv.desktop                        │
│ text/plain                              │ org.kde.kate.desktop               │
└─────────────────────────────────────────┴────────────────────────────────────┘

But then when using handlr open /path/to/file.sph it is still opened with kate.

Any help is appreciated! :)

nikvaessen avatar Feb 24 '23 08:02 nikvaessen