ropensci / handlr

convert among citation formats
https://docs.ropensci.org/handlr
Other
38 stars 4 forks source link

[feature request] Default action on `could not figure out the mime type` #29

Open freed00m opened 2 years ago

freed00m commented 2 years ago

Hello,

I wonder if there could be a default action specified on mime type exception.

Despite I have octet-stream in a application list and handlr should've not fail.

 $ cat ~/.config/mimeapps.list | grep octet-stream
application/octet-stream=nvim.desktop;
 $ handlr open user
could not figure out the mime type of 'user'
 $ file user                                    
user: GVariant Database file, version 0
 $ file --mime user        
user: application/octet-stream; charset=binary

p.s. If you acknowledge that it's a bug I can create a new ticket.

I can even upload the file, it's basically default dconf registry