aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/backup-restore
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-06-17 18:23:00 +0800
committerMilan Crha <mcrha@redhat.com>2011-06-17 18:23:00 +0800
commit92918048787abb85749313147e06724426662b00 (patch)
tree56821e79f9edf4c3247c9959a55f35e6988f7657 /plugins/backup-restore
parent2c4c8af58d44fc73e4f7048476a6fa55573d5e0b (diff)
downloadgsoc2013-evolution-92918048787abb85749313147e06724426662b00.tar
gsoc2013-evolution-92918048787abb85749313147e06724426662b00.tar.gz
gsoc2013-evolution-92918048787abb85749313147e06724426662b00.tar.bz2
gsoc2013-evolution-92918048787abb85749313147e06724426662b00.tar.lz
gsoc2013-evolution-92918048787abb85749313147e06724426662b00.tar.xz
gsoc2013-evolution-92918048787abb85749313147e06724426662b00.tar.zst
gsoc2013-evolution-92918048787abb85749313147e06724426662b00.zip
Bug #650223 - Do not wait on evolution's exit when done with backup/restore
Diffstat (limited to 'plugins/backup-restore')
-rw-r--r--plugins/backup-restore/backup.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/backup-restore/backup.c b/plugins/backup-restore/backup.c
index 928998f585..f813b2ca55 100644
--- a/plugins/backup-restore/backup.c
+++ b/plugins/backup-restore/backup.c
@@ -248,6 +248,12 @@ run_cmd (const gchar *cmd)
}
static void
+run_evolution_no_wait (void)
+{
+ g_spawn_command_line_async (EVOLUTION, NULL);
+}
+
+static void
write_dir_file (void)
{
GString *content, *filename;
@@ -326,7 +332,7 @@ backup (const gchar *filename,
return;
txt = _("Restarting Evolution");
- run_cmd (EVOLUTION);
+ run_evolution_no_wait ();
}
}
@@ -513,7 +519,7 @@ restore (const gchar *filename,
return;
txt = _("Restarting Evolution");
- run_cmd (EVOLUTION);
+ run_evolution_no_wait ();
}
}