talons

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

commit 75818fa3049df0da9d6d90bc800f96fc4839e379
parent b709b1aa7286c666820872707e557e2babfbcbed
Author: Colin Leroy <colin@colino.net>
Date:   Mon, 16 Aug 2010 02:59:20 +0000

2010-08-16 [colin]	3.7.6cvs27

	* src/main.c
		Use temp dir to store logs in Windows. Avoids doing
		get_rc_dir() early, which prevents set_rc_dir()
		working correctly.

Diffstat:
MChangeLog | 7+++++++
MPATCHSETS | 1+
Mconfigure.ac | 2+-
Msrc/main.c | 4++--
4 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,10 @@ +2010-08-16 [colin] 3.7.6cvs27 + + * src/main.c + Use temp dir to store logs in Windows. Avoids doing + get_rc_dir() early, which prevents set_rc_dir() + working correctly. + 2010-07-31 [holger] 3.7.6cvs26 * src/gtk/gtkshruler.c diff --git a/PATCHSETS b/PATCHSETS @@ -4022,3 +4022,4 @@ ( cvs diff -u -r 1.2.2.29 -r 1.2.2.30 src/gtk/colorlabel.c; ) > 3.7.6cvs24.patchset ( cvs diff -u -r 1.25.2.66 -r 1.25.2.67 src/stock_pixmap.c; ) > 3.7.6cvs25.patchset ( cvs diff -u -r 1.1.4.12 -r 1.1.4.13 src/gtk/gtkshruler.c; ) > 3.7.6cvs26.patchset +( cvs diff -u -r 1.115.2.226 -r 1.115.2.227 src/main.c; ) > 3.7.6cvs27.patchset diff --git a/configure.ac b/configure.ac @@ -12,7 +12,7 @@ MINOR_VERSION=7 MICRO_VERSION=6 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=26 +EXTRA_VERSION=27 EXTRA_RELEASE= EXTRA_GTK2_VERSION= diff --git a/src/main.c b/src/main.c @@ -793,8 +793,8 @@ static void win32_log(const gchar *log_domain, GLogLevelFlags log_level, const g static void win32_open_log(void) { - gchar *logfile = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, "claws-win32.log", NULL); - gchar *oldlogfile = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, "claws-win32.log.bak", NULL); + gchar *logfile = g_strconcat(get_tmp_dir(), G_DIR_SEPARATOR_S, "claws-win32.log", NULL); + gchar *oldlogfile = g_strconcat(get_tmp_dir(), G_DIR_SEPARATOR_S, "claws-win32.log.bak", NULL); if (is_file_exist(logfile)) { if (rename_force(logfile, oldlogfile) < 0)