summaryrefslogtreecommitdiff
path: root/src/config/supplementary/executor/Executor.cpp
diff options
context:
space:
mode:
authorfazzi <18248986+fxzzi@users.noreply.github.com>2026-03-28 15:22:09 +0000
committerGitHub <noreply@github.com>2026-03-28 15:22:09 +0000
commit98036faba08c2654ceff4d9895ba1e13745f4710 (patch)
tree8fd1640c3fbbf7a751b80c7fa87301781a9d8daa /src/config/supplementary/executor/Executor.cpp
parent47e2d599e61c5bcf56a8279eecabf2e5e02617dd (diff)
config/executor: actually execute exec-shutdown (#13872)
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();
+ });
});
}