feat: add mimeManager Service
Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
@ -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
|
||||
|
26
api/dbus/org.desktopspec.MimeManager1.xml
Normal file
26
api/dbus/org.desktopspec.MimeManager1.xml
Normal 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>
|
Reference in New Issue
Block a user