backup-restore: Remove references to ~/.camel_certs.
The path is now XDG-base-dir compliant: ~/.local/share/camel_certs
This commit is contained in:
@ -348,7 +348,7 @@ backup (const gchar *filename,
|
||||
/* FIXME backup location?" */
|
||||
command = g_strdup_printf (
|
||||
"cd $HOME && tar chf - $STRIPDATADIR "
|
||||
"$STRIPCONFIGDIR .camel_certs " EVOLUTION_DIR_FILE " | "
|
||||
"$STRIPCONFIGDIR " EVOLUTION_DIR_FILE " | "
|
||||
"gzip > %s", quotedfname);
|
||||
run_cmd (command);
|
||||
g_free (command);
|
||||
@ -517,7 +517,6 @@ restore (const gchar *filename,
|
||||
txt = _("Back up current Evolution data");
|
||||
run_cmd ("mv $DATADIR $DATADIR_old");
|
||||
run_cmd ("mv $CONFIGDIR $CONFIGDIR_old");
|
||||
run_cmd ("mv $HOME/.camel_certs $HOME/.camel_certs_old");
|
||||
|
||||
if (g_cancellable_is_cancelled (cancellable))
|
||||
return;
|
||||
@ -576,11 +575,6 @@ restore (const gchar *filename,
|
||||
run_cmd (command);
|
||||
g_free (command);
|
||||
|
||||
command = g_strdup_printf (
|
||||
"cd $HOME && tar xzf %s .camel_certs", quotedfname);
|
||||
run_cmd (command);
|
||||
g_free (command);
|
||||
|
||||
/* If the back file had version information, set the last
|
||||
* used version in GSettings before restarting Evolution. */
|
||||
if (restored_version != NULL && *restored_version != '\0') {
|
||||
@ -678,7 +672,6 @@ restore (const gchar *filename,
|
||||
txt = _("Removing temporary back up files");
|
||||
run_cmd ("rm -rf $DATADIR_old");
|
||||
run_cmd ("rm -rf $CONFIGDIR_old");
|
||||
run_cmd ("rm -rf $HOME/.camel_certs_old");
|
||||
run_cmd ("rm $DATADIR/.running");
|
||||
|
||||
if (!is_new_format)
|
||||
|
||||
Reference in New Issue
Block a user