naughty: Don't try to parse our version number
The code here doesn't always work, so it's best to just don't mess with awesome.version, but return it directly. Fixes: https://github.com/awesomeWM/awesome/issues/569 Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
82f74aa895
commit
1367968824
|
@ -195,8 +195,8 @@ capi.dbus.connect_signal("org.freedesktop.Notifications", function (data, appnam
|
|||
naughty.destroy(obj, naughty.notificationClosedReason.dismissedByCommand)
|
||||
end
|
||||
elseif data.member == "GetServerInfo" or data.member == "GetServerInformation" then
|
||||
-- name of notification app, name of vender, version
|
||||
return "s", "naughty", "s", "awesome", "s", capi.awesome.version:match("%d.%d"), "s", "1.0"
|
||||
-- name of notification app, name of vender, version, specification version
|
||||
return "s", "naughty", "s", "awesome", "s", capi.awesome.version, "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.
|
||||
|
|
Loading…
Reference in New Issue