[Commits] [SCM] claws branch, gtk2, updated. 3.20.0-7-ge6b31c885

paul at claws-mail.org paul at claws-mail.org
Tue Dec 19 16:18:42 UTC 2023


The branch, gtk2 has been updated
       via  e6b31c8852b33a18f25c98c562c001c850d8ae2d (commit)
      from  bd1d6c96fe31f5279ffe2492a6260d62ccb9eead (commit)

Summary of changes:
 src/main.c | 7 +++++++
 1 file changed, 7 insertions(+)


- Log -----------------------------------------------------------------
commit e6b31c8852b33a18f25c98c562c001c850d8ae2d
Author: Paul <paul at claws-mail.org>
Date:   Tue Dec 19 17:17:30 2023 +0100

    make a backup of menurc on startup

diff --git a/src/main.c b/src/main.c
index dd41dfc99..18226bd7b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1252,6 +1252,13 @@ int main(int argc, char *argv[])
 	g_free(userrc);
 
 	userrc = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, MENU_RC, NULL);
+
+	if (copy_file(userrc, userrc, TRUE) < 0) {
+		g_warning("can't copy message %s to %s.bak",
+			  userrc, userrc);
+				return -1;
+	}
+
 	gtk_accel_map_load (userrc);
 	g_free(userrc);
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list