From 49f22ddf6e7839230954af3cbbc64f2da8a1ffe9 Mon Sep 17 00:00:00 2001 From: Suman Manjunath Date: Mon, 30 Jun 2008 07:04:19 +0000 Subject: Patch from Milan Crha ** Fix for bug #536488 (Remove the .running file before backup and after restore). svn path=/trunk/; revision=35704 --- plugins/backup-restore/ChangeLog | 8 ++++++++ plugins/backup-restore/backup.c | 3 +++ 2 files changed, 11 insertions(+) diff --git a/plugins/backup-restore/ChangeLog b/plugins/backup-restore/ChangeLog index 04c319f227..cfa1dcc8ad 100644 --- a/plugins/backup-restore/ChangeLog +++ b/plugins/backup-restore/ChangeLog @@ -1,3 +1,11 @@ +2008-06-30 Milan Crha + + ** Fix for bug #536488 + + * backup.c: (backup), (restore): Remove '~/.evolution/.running' + file before backup/after restore, thus Evolution will not claim + next start it was closed incorrectly. + 2008-06-30 Tobias Mueller ** Fix for bug #540516 diff --git a/plugins/backup-restore/backup.c b/plugins/backup-restore/backup.c index 8711871581..d923b3bd92 100644 --- a/plugins/backup-restore/backup.c +++ b/plugins/backup-restore/backup.c @@ -72,6 +72,8 @@ backup (const char *filename) /* FIXME Will the versioned setting always work? */ s (EVOLUTION " --force-shutdown"); + s ("rm $HOME/.evolution/.running"); + CANCEL (complete); txt = _("Backing Evolution accounts and settings"); s ("gconftool-2 --dump " GCONF_DIR " > " GCONF_DUMP_PATH); @@ -136,6 +138,7 @@ restore (const char *filename) s ("rm -rf " GCONF_DUMP_PATH); s ("rm -rf " EVOLUTION_DIR_BACKUP); s ("rm -rf $HOME/.camel_certs_old"); + s ("rm $HOME/.evolution/.running"); if (restart_arg) { CANCEL (complete); -- cgit v1.2.3