summaryrefslogtreecommitdiff
path: root/src/config/supplementary/executor/Executor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/supplementary/executor/Executor.cpp')
-rw-r--r--src/config/supplementary/executor/Executor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config/supplementary/executor/Executor.cpp b/src/config/supplementary/executor/Executor.cpp
index 0a2fbcb9..8c04df81 100644
--- a/src/config/supplementary/executor/Executor.cpp
+++ b/src/config/supplementary/executor/Executor.cpp
@@ -51,6 +51,13 @@ CExecutor::CExecutor() {
// check for user's possible errors with their setup and notify them if needed
// this is additionally guarded because exiting safe mode will re-run this.
g_pCompositor->performUserChecks();
+
+ m_listeners.shutdown = Event::bus()->m_events.exit.listen([this] {
+ for (auto const& c : m_execShutdown) {
+ c.withRules ? spawn(c.exec) : spawnRaw(c.exec);
+ }
+ m_execShutdown.clear();
+ });
});
}