Commit 8ce8eff6 authored by Patrick Griffis's avatar Patrick Griffis Committed by Michael Catanzaro

Consistently use ephy_cache_dir() everywhere

parent bdde4973
......@@ -1238,10 +1238,7 @@ ephy_embed_shell_startup (GApplication *application)
*/
if (priv->mode != EPHY_EMBED_SHELL_MODE_AUTOMATION) {
/* Favicon Database */
if (priv->mode == EPHY_EMBED_SHELL_MODE_PRIVATE)
favicon_db_path = g_build_filename (ephy_dot_dir (), "icondatabase", NULL);
else
favicon_db_path = g_build_filename (g_get_user_cache_dir (), "epiphany", "icondatabase", NULL);
favicon_db_path = g_build_filename (ephy_cache_dir (), "icondatabase", NULL);
webkit_web_context_set_favicon_database_directory (priv->web_context, favicon_db_path);
g_free (favicon_db_path);
......
......@@ -122,8 +122,7 @@ validate_thumbnail_path (const char *path,
static char *
thumbnail_directory (void)
{
return g_build_filename (g_get_user_cache_dir (),
"epiphany",
return g_build_filename (ephy_cache_dir (),
"thumbnails",
NULL);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment