summaryrefslogtreecommitdiff
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
parentb0207b8d83807564e35142c0f8ab04e5fdb9715d (diff)
downloadcaja-29f52914fc496786db6bd1227232e861c8b2b1b0.tar.bz2
caja-29f52914fc496786db6bd1227232e861c8b2b1b0.tar.xz
Use g_get_user_config_dir instead of harcoding to $HOME/.config
-rw-r--r--libcaja-private/caja-file-utilities.c2
-rw-r--r--src/caja-application.c2
-rw-r--r--src/caja-convert-metadata.c2
-rw-r--r--src/file-manager/fm-directory-view.c4
4 files changed, 5 insertions, 5 deletions
diff --git a/libcaja-private/caja-file-utilities.c b/libcaja-private/caja-file-utilities.c
index 97f962ee..cc08be57 100644
--- a/libcaja-private/caja-file-utilities.c
+++ b/libcaja-private/caja-file-utilities.c
@@ -106,7 +106,7 @@ char* caja_get_user_directory(void)
* Si alguien tiene tiempo, puede enviar este codigo a Nautilus.
* Obviamente, con los comentarios traducidos al Inglés.
*/
- char* user_directory = g_build_filename(g_get_home_dir(), ".config", "caja", NULL);
+ char* user_directory = g_build_filename(g_get_user_config_dir(), "caja", NULL);
/* Se necesita que esta dirección sea una carpeta, con los permisos
* DEFAULT_CAJA_DIRECTORY_MODE. Pero si es un archivo, el programa intentará
* eliminar el archivo silenciosamente. */
diff --git a/src/caja-application.c b/src/caja-application.c
index 0d0624a4..415d7bec 100644
--- a/src/caja-application.c
+++ b/src/caja-application.c
@@ -565,7 +565,7 @@ do_upgrades_once (CajaApplication *application,
mark_desktop_files_trusted ();
}
- metafile_dir = g_build_filename(g_get_home_dir(), ".config", "caja", "metafiles", NULL);
+ metafile_dir = g_build_filename(g_get_user_config_dir(), "caja", "metafiles", NULL);
if (g_file_test (metafile_dir, G_FILE_TEST_IS_DIR))
{
diff --git a/src/caja-convert-metadata.c b/src/caja-convert-metadata.c
index 5ea7a13b..d3968abe 100644
--- a/src/caja-convert-metadata.c
+++ b/src/caja-convert-metadata.c
@@ -359,7 +359,7 @@ main (int argc, char *argv[])
/* Convert all metafiles */
- metafile_dir = g_build_filename (g_get_home_dir (), ".config", "caja", "metafiles", NULL);
+ metafile_dir = g_build_filename (g_get_user_config_dir (), "caja", "metafiles", NULL);
dir = g_dir_open (metafile_dir, 0, NULL);
if (dir)
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. */