aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-10-15 08:17:28 +0000
committersaturneric <[email protected]>2023-10-15 08:17:28 +0000
commitc1a5fff98cab4adf04210ba8120459b8e87a8fa3 (patch)
tree0c46d986628b1b910a3affbadf196e234a68c34d /src/main.cpp
parentfeat: support flatpack build and install (diff)
downloadGpgFrontend-c1a5fff98cab4adf04210ba8120459b8e87a8fa3.tar.gz
GpgFrontend-c1a5fff98cab4adf04210ba8120459b8e87a8fa3.zip
fix: solve some issues on linux .desktop file
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 6ceff2a3..37290f4f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -39,6 +39,7 @@
#include "core/GpgConstants.h"
#include "core/GpgCoreInit.h"
#include "core/function/GlobalSettingStation.h"
+#include "plugin/GpgFrontendPluginInit.h"
#include "spdlog/spdlog.h"
#include "ui/GpgFrontendApplication.h"
#include "ui/GpgFrontendUIInit.h"
@@ -118,6 +119,9 @@ int main(int argc, char* argv[]) {
// init the logging system for ui
GpgFrontend::UI::InitUILoggingSystem();
+ // init the logging system for ui
+ GpgFrontend::Plugin::InitPluginLoggingSystem();
+
// change path to search for related
init_global_path_env();
@@ -160,6 +164,9 @@ int main(int argc, char* argv[]) {
return_from_event_loop_code, restart_count);
} while (return_from_event_loop_code == RESTART_CODE && restart_count < 3);
+ // shutdown the logging system for core
+ GpgFrontend::Plugin::ShutdownPluginLoggingSystem();
+
// shutdown the logging system for ui
GpgFrontend::UI::ShutdownUILoggingSystem();