[eog] Don't use XDG_CONFIG_DIR for per-user plugins
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Don't use XDG_CONFIG_DIR for per-user plugins
- Date: Wed, 19 Dec 2012 19:17:42 +0000 (UTC)
commit 3ee8acc593524eec5ca8a6e5e782f7ee44cbd138
Author: Felix Riemann <friemann gnome org>
Date: Wed Dec 19 19:55:09 2012 +0100
Don't use XDG_CONFIG_DIR for per-user plugins
Load them from XDG_USER_DATA_DIR instead to be in line with other
applications using plugins like gnome-shell and gedit.
https://bugzilla.gnome.org/show_bug.cgi?id=690282
src/eog-plugin-engine.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/eog-plugin-engine.c b/src/eog-plugin-engine.c
index 20f26cd..35a498e 100644
--- a/src/eog-plugin-engine.c
+++ b/src/eog-plugin-engine.c
@@ -36,7 +36,6 @@
#include <gio/gio.h>
#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)
@@ -127,8 +126,8 @@ eog_plugin_engine_new (void)
peas_engine_enable_loader (PEAS_ENGINE (engine), "python");
- user_plugin_path = g_build_filename (eog_util_dot_dir (),
- USER_EOG_PLUGINS_LOCATION, NULL);
+ user_plugin_path = g_build_filename (g_get_user_data_dir (),
+ "eog", "plugins", NULL);
/* Find per-user plugins */
peas_engine_add_search_path (PEAS_ENGINE (engine),
user_plugin_path, user_plugin_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]