chmln / handlr

A better xdg-utils
MIT License
616 stars 24 forks source link

sphere files (.sph) #71

Open nikvaessen opened 1 year ago

nikvaessen commented 1 year ago

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! :)