diff options
author | saturneric <[email protected]> | 2024-07-12 13:18:34 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-07-12 13:18:34 +0000 |
commit | bc52ba74b461145212c999f4c2435125768f24ef (patch) | |
tree | b64b4df69c2760091aa518da0f0b0e084b99c968 /src/core/module/ModuleInit.cpp | |
parent | feat: improve the project structure (diff) | |
download | GpgFrontend-bc52ba74b461145212c999f4c2435125768f24ef.tar.gz GpgFrontend-bc52ba74b461145212c999f4c2435125768f24ef.zip |
feat: adjust modules loading path
Diffstat (limited to 'src/core/module/ModuleInit.cpp')
-rw-r--r-- | src/core/module/ModuleInit.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/module/ModuleInit.cpp b/src/core/module/ModuleInit.cpp index ceb5987e..cfeff3df 100644 --- a/src/core/module/ModuleInit.cpp +++ b/src/core/module/ModuleInit.cpp @@ -54,20 +54,20 @@ auto LoadIntegratedMods() -> bool { #if defined(MACOS) && defined(RELEASE) // App Bundle - auto mods_path = exec_binary_path + "/../PlugIns/mods"; + auto mods_path = exec_binary_path + "/../Modules"; #else // Debug Or Windows Platform - auto mods_path = exec_binary_path + "/mods"; + auto mods_path = exec_binary_path + "/modules"; #endif // AppImage if (!qEnvironmentVariable("APPIMAGE").isEmpty()) { - mods_path = qEnvironmentVariable("APPDIR") + "/usr/plugins/mods"; + mods_path = qEnvironmentVariable("APPDIR") + "/usr/modules"; } // Flatpak if (!qEnvironmentVariable("container").isEmpty()) { - mods_path = "/app/lib/mods"; + mods_path = "/app/modules"; } GF_CORE_LOG_DEBUG("try loading integrated modules at path: {} ...", |