Change path where backup/restore searches for the .running file

It had been looking for it in the data dir, aka ~/.local/share/evolution/,
bug evolution stores it in the config dir, aka ~/.config/evolution/.
This commit is contained in:
Milan Crha
2019-06-03 14:20:28 +02:00
parent 3bc6a5f154
commit c8485f4bf9

View File

@ -295,7 +295,7 @@ backup (const gchar *filename,
/* FIXME Will the versioned setting always work? */
run_cmd (EVOLUTION " --quit");
run_cmd ("rm $DATADIR/.running");
run_cmd ("rm $CONFIGDIR/.running");
if (g_cancellable_is_cancelled (cancellable))
return;
@ -676,7 +676,7 @@ 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 $DATADIR/.running");
run_cmd ("rm $CONFIGDIR/.running");
if (!is_new_format)
run_cmd ("rm -rf $HOME/.evolution_old");