changeset 24219:40d03c5388ad

Set %HOME% when running in portable mode so that GTK+'s files get stored in the right place. Fixes #5524.
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 02 Oct 2008 02:22:42 +0000
parents 9c8d73b0f27c
children a7e1edeb3ac6
files pidgin/win32/winpidgin.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/win32/winpidgin.c	Thu Oct 02 01:40:23 2008 +0000
+++ b/pidgin/win32/winpidgin.c	Thu Oct 02 02:22:42 2008 +0000
@@ -212,6 +212,9 @@
 		return;
 	}
 
+	/* Set $HOME so that the GTK+ settings get stored in the right place */
+	_snprintf(path2, sizeof(path2), "HOME=%s", path);
+	_putenv(path2);
 
 	/* Set up the settings dir base to be \\path\to
 	 * The actual settings dir will be \\path\to\.purple */