refact: support query default application of a file or a mime type

Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
ComixHe
2023-10-30 13:19:40 +08:00
committed by Comix
parent 5e8c53479d
commit 1fe387b5a3
3 changed files with 21 additions and 13 deletions

View File

@ -2,10 +2,13 @@
<node>
<interface name="org.desktopspec.MimeManager1">
<method name="queryFileTypeAndDefaultApplication">
<arg type="s" name="filePath" direction="in"/>
<method name="queryDefaultApplication">
<arg type="s" name="content" direction="in"/>
<arg type="s" name="mimeType" direction="out"/>
<arg type="o" name="application" direction="out"/>
<annotation
name="org.freedesktop.DBus.Description"
value="content can be absolute path of a file or a mime type."/>
</method>
<method name="setDefaultApplication">