aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2010-11-23 17:46:54 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:04 +0800
commit89f4d51b10b78379e09364bc872868758b968078 (patch)
tree6283d9b2f82b72bc22ddfa071fa93e91cafc4f8c /shell
parent89557dcfee7bb9f7ca7dddfe559e89dc7b2a93df (diff)
downloadgsoc2013-evolution-89f4d51b10b78379e09364bc872868758b968078.tar
gsoc2013-evolution-89f4d51b10b78379e09364bc872868758b968078.tar.gz
gsoc2013-evolution-89f4d51b10b78379e09364bc872868758b968078.tar.bz2
gsoc2013-evolution-89f4d51b10b78379e09364bc872868758b968078.tar.lz
gsoc2013-evolution-89f4d51b10b78379e09364bc872868758b968078.tar.xz
gsoc2013-evolution-89f4d51b10b78379e09364bc872868758b968078.tar.zst
gsoc2013-evolution-89f4d51b10b78379e09364bc872868758b968078.zip
Bug #635087 - Leftover files after migration of config/data/cache to XDG directories
Diffstat (limited to 'shell')
-rw-r--r--shell/e-shell-migrate.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/shell/e-shell-migrate.c b/shell/e-shell-migrate.c
index 3f3f6f563b..878b121488 100644
--- a/shell/e-shell-migrate.c
+++ b/shell/e-shell-migrate.c
@@ -433,14 +433,15 @@ shell_xdg_migrate_config_dir_mail (EShell *shell,
}
static void
-shell_xdg_migrate_config_dir_cleanup (EShell *shell,
+shell_xdg_migrate_dir_cleanup (EShell *shell,
const gchar *old_base_dir,
- const gchar *backend_name)
+ const gchar *backend_name,
+ const gchar *dir_name)
{
gchar *dirname;
dirname = g_build_filename (
- old_base_dir, backend_name, "config", NULL);
+ old_base_dir, backend_name, dir_name, NULL);
shell_xdg_migrate_rmdir (dirname);
@@ -467,10 +468,13 @@ shell_xdg_migrate_config_dir (EShell *shell,
/* Handle backend-specific files. */
shell_xdg_migrate_config_dir_mail (shell, old_base_dir);
- /* Remove leftover "config" directories. */
- for (ii = 0; shell_backend_names[ii] != NULL; ii++)
- shell_xdg_migrate_config_dir_cleanup (
- shell, old_base_dir, shell_backend_names[ii]);
+ /* Remove leftover config directories. */
+ for (ii = 0; shell_backend_names[ii] != NULL; ii++) {
+ shell_xdg_migrate_dir_cleanup (
+ shell, old_base_dir, shell_backend_names[ii], "config");
+ shell_xdg_migrate_dir_cleanup (
+ shell, old_base_dir, shell_backend_names[ii], "views");
+ }
/*** Miscellaneous configuration files. ***/