Implement the GetCapabilities call in naughty
This call is required by the freedesktop specification. Signed-off-by: Uli Schlachter <psychon@znc.in> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
1e2fcadfd0
commit
531381fa6d
|
@ -486,6 +486,10 @@ if capi.dbus then
|
||||||
elseif data.member == "GetServerInfo" or data.member == "GetServerInformation" then
|
elseif data.member == "GetServerInfo" or data.member == "GetServerInformation" then
|
||||||
-- name of notification app, name of vender, version
|
-- name of notification app, name of vender, version
|
||||||
return "s", "naughty", "s", "awesome", "s", capi.awesome.version:match("%d.%d"), "s", "1.0"
|
return "s", "naughty", "s", "awesome", "s", capi.awesome.version:match("%d.%d"), "s", "1.0"
|
||||||
|
elseif data.member == "GetCapabilities" then
|
||||||
|
-- We actually do display the body of the message, we support <b>, <i>
|
||||||
|
-- and <u> in the body and we handle static (non-animated) icons.
|
||||||
|
return "as", { "s", "body", "s", "body-markup", "s", "icon-static" }
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
@ -502,6 +506,9 @@ if capi.dbus then
|
||||||
</method>
|
</method>
|
||||||
</interface>
|
</interface>
|
||||||
<interface name="org.freedesktop.Notifications">
|
<interface name="org.freedesktop.Notifications">
|
||||||
|
<method name="GetCapabilities">
|
||||||
|
<arg name="caps" type="as" direction="out"/>
|
||||||
|
</method>
|
||||||
<method name="CloseNotification">
|
<method name="CloseNotification">
|
||||||
<arg name="id" type="u" direction="in"/>
|
<arg name="id" type="u" direction="in"/>
|
||||||
</method>
|
</method>
|
||||||
|
|
Loading…
Reference in New Issue