From c1a5fff98cab4adf04210ba8120459b8e87a8fa3 Mon Sep 17 00:00:00 2001 From: saturneric Date: Sun, 15 Oct 2023 16:17:28 +0800 Subject: fix: solve some issues on linux .desktop file --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main.cpp') 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(); -- cgit v1.2.3