feat: add Process.manageLifetime

This commit is contained in:
outfoxxed 2024-03-03 23:17:15 -08:00
parent 4cfe6ee0a1
commit 62f99f5754
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
8 changed files with 90 additions and 6 deletions

12
src/io/init.cpp Normal file
View file

@ -0,0 +1,12 @@
#include "../core/plugin.hpp"
#include "process.hpp"
namespace {
class IoPlugin: public QuickshellPlugin {
void onReload() override { DisownedProcessContext::destroyInstance(); }
};
QS_REGISTER_PLUGIN(IoPlugin);
} // namespace