|
|
@ -100,11 +100,14 @@ function obj:reap()
|
|
|
|
local app = hs.application.get(appName)
|
|
|
|
local app = hs.application.get(appName)
|
|
|
|
|
|
|
|
|
|
|
|
if self:shouldQuit(app) then
|
|
|
|
if self:shouldQuit(app) then
|
|
|
|
hs.notify.new({
|
|
|
|
hs.notify.new(
|
|
|
|
title = "Hammerspoon",
|
|
|
|
function() hs.application.open(app:name()) end,
|
|
|
|
informativeText = "Quitting " .. app:name(),
|
|
|
|
{
|
|
|
|
withdrawAfter = 2,
|
|
|
|
title = "Hammerspoon",
|
|
|
|
}):send()
|
|
|
|
informativeText = "Quitting " .. app:name(),
|
|
|
|
|
|
|
|
withdrawAfter = 2,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
):send()
|
|
|
|
app:kill()
|
|
|
|
app:kill()
|
|
|
|
self.lastFocused[app:name()] = nil
|
|
|
|
self.lastFocused[app:name()] = nil
|
|
|
|
end
|
|
|
|
end
|
|
|
|