diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2024-08-24 22:30:08 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2024-08-24 22:30:08 (GMT) |
commit | f505830e800e4061d6e57c2b0769f956e70a2d84 (patch) | |
tree | 4c41123d39586122b732defe0faad1d4158ec5a7 /src/app.c | |
parent | 70f5f1c083158ea01513bc07955d62b3b3f43795 (diff) |
Load (some) core components again.
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -35,9 +35,11 @@ #include "app.h" #include "common/io.h" #include "common/xdg.h" +#include "core/core.h" #include "core/logs.h" #include "gui/core/core.h" #include "gui/window.h" +#include "plugins/pglist.h" @@ -503,9 +505,14 @@ int main(int argc, char **argv) set_log_verbosity(verbosity); - if (!load_gui_components(AGC_BUFFER_FEATURES | AGC_PANELS)) + if (!load_core_components(ACC_GLOBAL_VARS)) goto exit; + if (!load_gui_components(AGC_BUFFER_FEATURES | AGC_PANELS)) + goto exit_with_core; + + init_all_plugins(true); + ensure_wm_icon_and_name(); g_set_prgname("Chrysalide"); @@ -516,8 +523,14 @@ int main(int argc, char **argv) g_object_unref(G_OBJECT(app)); + exit_all_plugins(); + unload_gui_components(AGC_BUFFER_FEATURES | AGC_PANELS); + exit_with_core: + + unload_core_components(ACC_GLOBAL_VARS); + exit: return result; |