[eog] Fix system plugins data dir path
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Fix system plugins data dir path
- Date: Wed, 8 Feb 2012 19:48:08 +0000 (UTC)
commit be54b454c35c9da9e346690876f03f2e41cf14a0
Author: Felix Riemann <friemann gnome org>
Date: Wed Feb 8 20:45:10 2012 +0100
Fix system plugins data dir path
eog-plugins was changed to move the plugin's data files out of the
library path. Pass the correct path to libpeas as well, so
system-wide plugins can query this path dynamically from the engine.
src/eog-plugin-engine.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-plugin-engine.c b/src/eog-plugin-engine.c
index 8442903..20f26cd 100644
--- a/src/eog-plugin-engine.c
+++ b/src/eog-plugin-engine.c
@@ -37,6 +37,7 @@
#include <girepository.h>
#define USER_EOG_PLUGINS_LOCATION "plugins/"
+#define EOG_PLUGIN_DATA_DIR EOG_DATA_DIR G_DIR_SEPARATOR_S "plugins"
G_DEFINE_TYPE (EogPluginEngine, eog_plugin_engine, PEAS_TYPE_ENGINE)
@@ -133,7 +134,7 @@ eog_plugin_engine_new (void)
user_plugin_path, user_plugin_path);
/* Find system-wide plugins */
peas_engine_add_search_path (PEAS_ENGINE (engine),
- EOG_PLUGIN_DIR, EOG_PLUGIN_DIR);
+ EOG_PLUGIN_DIR, EOG_PLUGIN_DATA_DIR);
g_settings_bind (engine->priv->plugins_settings,
EOG_CONF_PLUGINS_ACTIVE_PLUGINS,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]