开发者

How can I find the application for a MIME type on linux?

开发者 https://www.devze.com 2023-02-15 02:50 出处:网络
Is there a linux API that can find the default开发者_StackOverflow社区 application for a MIME type?

Is there a linux API that can find the default开发者_StackOverflow社区 application for a MIME type? Then I can use this application to open a file.

I can not use xdg-open(url) because the file format is a wrapper format and shared mime-type can only tell the wrapper MIME type. The embedded mime type can only be got from the wrapper file header.

The process would be like: 1. find embedded mime type 2. mime-open(embedded mime type, url)

Is it possible?

Many thanks! Amanda

0

精彩评论

暂无评论...
验证码 换一张
取 消