[evolution/webkit] Bug #650223 - Do not wait on evolution's exit when done with backup/restore
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit] Bug #650223 - Do not wait on evolution's exit when done with backup/restore
- Date: Mon, 11 Jul 2011 14:56:01 +0000 (UTC)
commit 35d43297e5c516bf19086ad66072579caf0589c0
Author: Milan Crha <mcrha redhat com>
Date: Fri Jun 17 12:23:00 2011 +0200
Bug #650223 - Do not wait on evolution's exit when done with backup/restore
plugins/backup-restore/backup.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/plugins/backup-restore/backup.c b/plugins/backup-restore/backup.c
index 928998f..f813b2c 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 ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]