Move user plugins dir to data_dir

Plugins don't belong in config_dir so we move them to data_dir.
User will need to move the plugin dir to the new location, see NEWS.
This commit is contained in:
infirit
2014-01-15 23:32:45 +01:00
parent bacead2866
commit 86369deb93
2 changed files with 13 additions and 5 deletions

View File

@@ -67,13 +67,13 @@ gchar* pluma_dirs_get_user_cache_dir(void)
gchar* pluma_dirs_get_user_plugins_dir(void)
{
gchar* config_dir;
gchar* data_dir;
gchar* plugin_dir;
config_dir = pluma_dirs_get_user_config_dir();
data_dir = g_get_user_data_dir();
plugin_dir = g_build_filename(config_dir, "plugins", NULL);
g_free(config_dir);
plugin_dir = g_build_filename(data_dir, "pluma", "plugins", NULL);
g_free(data_dir);
return plugin_dir;
}