summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-08-31 19:15:26 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-08-31 19:15:26 (GMT)
commit531be2e3a96bf13cd36035cec7faa31b2534a742 (patch)
treed8c2b5f6d5601a1adfa7356f45879bb5f0fca348 /src
parent1307580ca1ca820b57dcfbfcdcee9afe74cc1614 (diff)
Changed the location of installed plugins.
Diffstat (limited to 'src')
-rw-r--r--src/core/paths.c4
-rw-r--r--src/core/paths.h2
-rw-r--r--src/main.c3
3 files changed, 5 insertions, 4 deletions
diff --git a/src/core/paths.c b/src/core/paths.c
index 8e825d2..f58f46c 100644
--- a/src/core/paths.c
+++ b/src/core/paths.c
@@ -123,7 +123,7 @@ char *find_pixmap_file(const char *filename)
* *
******************************************************************************/
-char *find_plugin_file(const char *pgname, const char *filename)
+char *find_plugin_data_file(const char *pgname, const char *filename)
{
char *result; /* Trouvaille à renvoyer */
#ifndef DISCARD_LOCAL
@@ -150,7 +150,7 @@ char *find_plugin_file(const char *pgname, const char *filename)
#endif
if (result == NULL)
- result = find_file_in_directory(PLUGINS_DIR, filename);
+ result = find_file_in_directory(PLUGINS_DATA_DIR, filename);
return result;
diff --git a/src/core/paths.h b/src/core/paths.h
index c16a278..a755559 100644
--- a/src/core/paths.h
+++ b/src/core/paths.h
@@ -30,7 +30,7 @@
char *find_pixmap_file(const char *);
/* Trouve le chemin d'accès complet à un fichier de greffon. */
-char *find_plugin_file(const char *, const char *);
+char *find_plugin_data_file(const char *, const char *);
diff --git a/src/main.c b/src/main.c
index 05e2b15..bbd4d11 100644
--- a/src/main.c
+++ b/src/main.c
@@ -129,7 +129,8 @@ static void show_chrysalide_version(void)
printf(_("Pictures directory: %s\n"), PIXMAPS_DIR);
printf(_("Themes directory: %s\n"), THEMES_DIR);
- printf(_("Plugins directory: %s\n"), PLUGINS_DIR);
+ printf(_("Plugins library directory: %s\n"), PLUGINS_LIB_DIR);
+ printf(_("Plugins data directory: %s\n"), PLUGINS_DATA_DIR);
printf(_("Locale directory: %s\n"), LOCALE_DIR);
printf("\n");