diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/core/theme.c | 3 | ||||
-rw-r--r-- | src/plugins/pglist.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/core/theme.c b/src/gui/core/theme.c index 8e68780..77eff7f 100644 --- a/src/gui/core/theme.c +++ b/src/gui/core/theme.c @@ -63,8 +63,11 @@ static bool extend_with_plugins_themes(GdkScreen *, gboolean); /* RĂ©pertoires de recherche */ static const char *_themes_directories[] = { +#ifndef DISCARD_LOCAL PACKAGE_SOURCE_DIR G_DIR_SEPARATOR_S "themes", +#else THEMES_DIR, +#endif NULL }; diff --git a/src/plugins/pglist.c b/src/plugins/pglist.c index b7c8d1d..85f2b99 100644 --- a/src/plugins/pglist.c +++ b/src/plugins/pglist.c @@ -75,7 +75,11 @@ bool init_all_plugins(bool load) { g_rw_lock_init(&_pg_lock); +#ifndef DISCARD_LOCAL browse_directory_for_plugins(PACKAGE_SOURCE_DIR "/plugins"); +#else + browse_directory_for_plugins(PLUGINS_LIB_DIR); +#endif if (load) load_remaning_plugins(); |