summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-directory-view.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-10-05 21:04:13 +0200
committerinfirit <[email protected]>2014-10-05 21:04:13 +0200
commit29f52914fc496786db6bd1227232e861c8b2b1b0 (patch)
tree344820cff30e6f066468571aa77e0c0d85e27336 /src/file-manager/fm-directory-view.c
parentb0207b8d83807564e35142c0f8ab04e5fdb9715d (diff)
downloadcaja-29f52914fc496786db6bd1227232e861c8b2b1b0.tar.bz2
caja-29f52914fc496786db6bd1227232e861c8b2b1b0.tar.xz
Use g_get_user_config_dir instead of harcoding to $HOME/.config
Diffstat (limited to 'src/file-manager/fm-directory-view.c')
-rw-r--r--src/file-manager/fm-directory-view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c
index 37639554..3d58a057 100644
--- a/src/file-manager/fm-directory-view.c
+++ b/src/file-manager/fm-directory-view.c
@@ -1646,7 +1646,7 @@ static void set_up_scripts_directory_global(void)
}
else
{
- scripts_directory_path = g_build_filename(g_get_home_dir(), ".config", "caja", "scripts", NULL);
+ scripts_directory_path = g_build_filename(g_get_user_config_dir(), "caja", "scripts", NULL);
}
if (g_mkdir_with_parents(scripts_directory_path, 0755) == 0)
@@ -1660,7 +1660,7 @@ static void set_up_scripts_directory_global(void)
if (g_file_test(nautilus_scripts_path, G_FILE_TEST_IS_DIR) == TRUE)
{
- char* nautilus_syslink = g_build_filename(g_get_home_dir(), ".config", "caja", "scripts", "nautilus", NULL);
+ char* nautilus_syslink = g_build_filename(g_get_user_config_dir(), "caja", "scripts", "nautilus", NULL);
// G_FILE_TEST_IS_REGULAR
/* En caso de que exista el enlace, o algĂșn otro tipo de archivo con
* el mismo nombre, ignoramos. Incluso si es una carpeta. */