2008-11-20 15:18:48 +01:00
|
|
|
Index: plugins/backup-restore/backup.c
|
|
|
|
===================================================================
|
2009-06-02 12:44:40 +02:00
|
|
|
--- plugins/backup-restore/backup.c.orig
|
|
|
|
+++ plugins/backup-restore/backup.c
|
|
|
|
@@ -35,6 +35,7 @@
|
|
|
|
#define EVOUSERDATADIR_MAGIC "#EVO_USERDATADIR#"
|
2008-11-20 15:18:48 +01:00
|
|
|
|
|
|
|
#define EVOLUTION "evolution"
|
|
|
|
+#define PKILL "/usr/bin/pkill"
|
|
|
|
#define EVOLUTION_DIR "$HOME/.evolution/"
|
|
|
|
#define EVOLUTION_DIR_BACKUP "$HOME/.evolution-old/"
|
|
|
|
#define GCONF_DUMP_FILE "backup-restore-gconf.xml"
|
2009-06-02 12:44:40 +02:00
|
|
|
@@ -252,6 +253,7 @@ restore (const char *filename)
|
2008-11-20 15:18:48 +01:00
|
|
|
|
2009-06-02 12:44:40 +02:00
|
|
|
replace_in_file (GCONF_DUMP_PATH, EVOUSERDATADIR_MAGIC, e_get_user_data_dir ());
|
|
|
|
|
|
|
|
+ run_cmd (PKILL " gconf");
|
|
|
|
run_cmd ("gconftool-2 --load " GCONF_DUMP_PATH);
|
2008-11-20 15:18:48 +01:00
|
|
|
|
|
|
|
CANCEL (complete);
|