talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit fc24da81fedf0ffbe5ed486bbbe7a64eba5e176c
parent 29150a48bb93e7bffc1a39c4c62657742d0574de
Author: Paul <paul@claws-mail.org>
Date:   Tue, 19 Dec 2023 17:17:30 +0100

make a backup of menurc on startup

Diffstat:
Msrc/main.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -1236,6 +1236,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);