# HG changeset patch # User Daniel Atallah # Date 1222914162 0 # Node ID 40d03c5388ad21a3ce94b2494b69200264e31c98 # Parent 9c8d73b0f27c45166682794b994e24e4cf28fa3d Set %HOME% when running in portable mode so that GTK+'s files get stored in the right place. Fixes #5524. diff -r 9c8d73b0f27c -r 40d03c5388ad pidgin/win32/winpidgin.c --- 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 */