From 98036faba08c2654ceff4d9895ba1e13745f4710 Mon Sep 17 00:00:00 2001 From: fazzi <18248986+fxzzi@users.noreply.github.com> Date: Sat, 28 Mar 2026 15:22:09 +0000 Subject: config/executor: actually execute exec-shutdown (#13872) --- src/config/supplementary/executor/Executor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/config/supplementary/executor/Executor.cpp') 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(); + }); }); } -- cgit v1.2.3