feat: change dbus interface api
1. remove method: Application, Launch. (ApplicationManager1) 2. add property: IconName, DisplayName. (Application1) 3. refact the way of construct ApplicationService. 4. if Desktop Entry Key `Hidden` is true, this application wouldn't export to DBus. Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
@ -17,6 +17,10 @@
|
||||
|
||||
<property name="AutoStart" type="b" access="readwrite"/>
|
||||
|
||||
<property name="IconName" type="s" access="read"/>
|
||||
|
||||
<property name="DisplayName" type="s" access="read"/>
|
||||
|
||||
<property name="Instances" type="ao" access="read">
|
||||
<annotation
|
||||
name="org.freedesktop.DBus.Description"
|
||||
|
@ -12,11 +12,6 @@
|
||||
/>
|
||||
</method>
|
||||
|
||||
<method name="Application">
|
||||
<arg type="s" name="id" direction="in" />
|
||||
<arg type="o" name="application" direction="out" />
|
||||
</method>
|
||||
|
||||
<method name="Identify">
|
||||
<arg type="h" name="pidfd" direction="in" />
|
||||
|
||||
@ -36,22 +31,5 @@
|
||||
/>
|
||||
</method>
|
||||
|
||||
<method name="Launch">
|
||||
<arg type="s" name="id" direction="in" />
|
||||
<arg type="s" name="action" direction="in" />
|
||||
<arg type="as" name="fields" direction="in" />
|
||||
<arg type="a{sv}" name="options" direction="in" />
|
||||
<arg type="o" name="job" direction="out" />
|
||||
<annotation name="org.qtproject.QtDBus.QtTypeName.In3" value="QVariantMap"/>
|
||||
<annotation
|
||||
name="org.freedesktop.DBus.Description"
|
||||
value="Given a desktop file id,
|
||||
this method will launch a desktop application.
|
||||
|
||||
Check description of the `Launch` method in
|
||||
`org.desktopspec.ApplicationManager1.Application`
|
||||
interface for futher infomation."
|
||||
/>
|
||||
</method>
|
||||
</interface>
|
||||
</node>
|
||||
|
Reference in New Issue
Block a user