aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/module/ModuleInit.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-12 13:18:34 +0000
committersaturneric <[email protected]>2024-07-12 13:18:34 +0000
commitbc52ba74b461145212c999f4c2435125768f24ef (patch)
treeb64b4df69c2760091aa518da0f0b0e084b99c968 /src/core/module/ModuleInit.cpp
parentfeat: improve the project structure (diff)
downloadGpgFrontend-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.cpp8
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: {} ...",