feat: add mimeManager Service

Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
ComixHe
2023-09-20 18:29:42 +08:00
committed by black-desk
parent 8970298ad0
commit f63741b023
25 changed files with 1282 additions and 296 deletions

View File

@ -11,6 +11,7 @@
<property name="X_Flatpak" type="b" access="read"/>
<property name="installedTime" type="t" access="read"/>
<property name="NoDisplay" type="b" access="read"/>
<property name="MimeTypes" type="as" access="readwrite"/>
<property name="Actions" type="as" access="read">
<annotation

View File

@ -0,0 +1,26 @@
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "https://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
<interface name="org.desktopspec.MimeManager1">
<method name="queryFileTypeAndDefaultApplication">
<arg type="s" name="filePath" direction="in"/>
<arg type="s" name="mimeType" direction="out"/>
<arg type="o" name="application" direction="out"/>
</method>
<method name="setDefaultApplication">
<arg type="a{ss}" name="defaultApps" direction="in"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="KVPairs"/>
</method>
<method name="unsetDefaultApplication">
<arg type="as" name="mimeTypes" direction="in"/>
</method>
<method name="listApplications">
<arg type="s" name="mimeType" direction="in"/>
<arg name="applications_and_properties" type="a{oa{sa{sv}}}" direction="out"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="ObjectMap"/>
</method>
</interface>
</node>