2023-05-26 10:05:56 +08:00
|
|
|
<!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.ApplicationManager1.Application">
|
|
|
|
<annotation
|
|
|
|
name="org.freedesktop.DBus.Description"
|
2023-07-24 14:12:59 +08:00
|
|
|
value="This interface is designed to provide a dbus interface of desktop file. Missing fields will be added later."
|
2023-05-26 10:05:56 +08:00
|
|
|
/>
|
2023-08-30 15:21:20 +08:00
|
|
|
|
|
|
|
<property name="Categories" type="as" access="read"/>
|
2023-08-31 16:40:29 +08:00
|
|
|
<property name="X_linglong" type="b" access="read"/>
|
|
|
|
<property name="X_Flatpak" type="b" access="read"/>
|
|
|
|
<property name="installedTime" type="t" access="read"/>
|
2023-05-26 10:05:56 +08:00
|
|
|
|
2023-07-17 14:49:35 +08:00
|
|
|
<property name="Actions" type="as" access="read">
|
|
|
|
<annotation
|
|
|
|
name="org.freedesktop.DBus.Description"
|
|
|
|
value="Names of all action identifiers of this application.
|
|
|
|
Check https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#extra-actions
|
|
|
|
for futher information."
|
|
|
|
/>
|
|
|
|
</property>
|
2023-05-26 10:05:56 +08:00
|
|
|
|
2023-07-17 14:49:35 +08:00
|
|
|
<property name="AutoStart" type="b" access="readwrite"/>
|
2023-08-23 17:20:47 +08:00
|
|
|
<property name="LastLaunchedTime" type="t" access="read"/>
|
2023-07-17 14:49:35 +08:00
|
|
|
|
|
|
|
<property name="Instances" type="ao" access="read">
|
2023-05-26 10:05:56 +08:00
|
|
|
<annotation
|
|
|
|
name="org.freedesktop.DBus.Description"
|
2023-07-17 14:49:35 +08:00
|
|
|
value="All instances of this application."
|
|
|
|
/>
|
|
|
|
</property>
|
2023-05-26 10:05:56 +08:00
|
|
|
|
2023-07-17 14:49:35 +08:00
|
|
|
<property name="ID" type="s" access="read">
|
|
|
|
<annotation
|
|
|
|
name="org.freedesktop.DBus.Description"
|
|
|
|
value="The desktop file id of this application.
|
|
|
|
Check https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#desktop-file-id
|
|
|
|
for futher infomation."
|
2023-05-26 10:05:56 +08:00
|
|
|
/>
|
2023-07-17 14:49:35 +08:00
|
|
|
</property>
|
2023-05-26 10:05:56 +08:00
|
|
|
|
2023-08-25 10:47:17 +08:00
|
|
|
<property name="ActionName" type="a{ss}" access="read">
|
|
|
|
<annotation
|
|
|
|
name="org.freedesktop.DBus.Description"
|
|
|
|
value="The type of ActionName is a Map, where the key represents the locale and the value is the corresponding content."
|
|
|
|
/>
|
|
|
|
<annotation name="org.qtproject.QtDBus.QtTypeName" value="PropMap"/>
|
|
|
|
</property>
|
|
|
|
|
2023-08-29 13:28:25 +08:00
|
|
|
<property name="Icons" type="a{ss}" access="read">
|
2023-08-25 10:47:17 +08:00
|
|
|
<annotation
|
|
|
|
name="org.freedesktop.DBus.Description"
|
|
|
|
value="The type of IconName is a Map, where the key represents the action and the value is the corresponding content."
|
|
|
|
/>
|
|
|
|
<annotation name="org.qtproject.QtDBus.QtTypeName" value="PropMap"/>
|
2023-08-25 10:54:09 +08:00
|
|
|
</property>
|
2023-08-25 10:47:17 +08:00
|
|
|
|
|
|
|
<property name="DisplayName" type="a{ss}" access="read">
|
|
|
|
<annotation
|
|
|
|
name="org.freedesktop.DBus.Description"
|
|
|
|
value="The meaning of this property's type is same as which in ActionName."
|
|
|
|
/>
|
|
|
|
<annotation name="org.qtproject.QtDBus.QtTypeName" value="PropMap"/>
|
|
|
|
</property>
|
|
|
|
|
2023-07-17 14:49:35 +08:00
|
|
|
<method name="Launch">
|
|
|
|
<arg type="s" name="action" direction="in" />
|
|
|
|
<arg type="as" name="fields" direction="in" />
|
|
|
|
<arg type="o" name="job" direction="out" />
|
|
|
|
|
|
|
|
<arg type="a{sv}" name="options" direction="in"/>
|
|
|
|
<annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QVariantMap"/>
|
|
|
|
<annotation
|
2023-05-26 10:05:56 +08:00
|
|
|
name="org.freedesktop.DBus.Description"
|
2023-07-17 14:49:35 +08:00
|
|
|
value="Given an action identifier,
|
|
|
|
and some fields (file path or URI),
|
|
|
|
this method will launch this application,
|
|
|
|
and the object path of the job launching application.
|
|
|
|
Result of that job is a object path
|
|
|
|
of the new application instance.
|
|
|
|
If that job failed, the result is a bool `false`.
|
|
|
|
|
|
|
|
Extra options can be passed in `options` argument:
|
|
|
|
1. `uid` (type u):
|
|
|
|
The user id as who is that application will be run.
|
2023-08-30 18:36:52 +08:00
|
|
|
This option might request a polikit authentication.
|
|
|
|
2. `env` (type s):
|
|
|
|
passing some specific environment variables to Launch
|
|
|
|
this application, eg. 'LANG=en_US;PATH=xxx:yyy;'
|
2023-08-31 16:44:21 +08:00
|
|
|
NOTE:
|
|
|
|
When application launched with `uid` option,
|
|
|
|
`env` option will not take effect at all."
|
2023-05-26 10:05:56 +08:00
|
|
|
/>
|
2023-07-17 14:49:35 +08:00
|
|
|
</method>
|
2023-09-01 15:48:29 +08:00
|
|
|
|
|
|
|
<property name="isOnDesktop" type="b" access="read"/>
|
|
|
|
|
|
|
|
<method name="SendToDesktop">
|
|
|
|
<arg type="b" name="success" direction="out"/>
|
|
|
|
</method>
|
|
|
|
|
|
|
|
<method name="RemoveFromDesktop">
|
|
|
|
<arg type="b" name="success" direction="out"/>
|
|
|
|
</method>
|
|
|
|
|
2023-05-26 10:05:56 +08:00
|
|
|
</interface>
|
|
|
|
</node>
|