| 134 "Assuming GTK+ is in the PATH.\n"); |
134 "Assuming GTK+ is in the PATH.\n"); |
| 135 } |
135 } |
| 136 |
136 |
| 137 if (path) { |
137 if (path) { |
| 138 /* Set up the settings dir base to be \\path\to |
138 /* Set up the settings dir base to be \\path\to |
| 139 * The actual settings dir will be \\path\to\.pidgin */ |
139 * The actual settings dir will be \\path\to\.purple */ |
| 140 char settingsdir[strlen(path) + strlen("PIDGINHOME=") + 1]; |
140 char settingsdir[strlen(path) + strlen("PURPLEHOME=") + 1]; |
| 141 char aspelldir[strlen(path) + strlen("PIDGIN_ASPELL_DIR=\\Aspell\\bin") + 1]; |
141 char aspelldir[strlen(path) + strlen("PIDGIN_ASPELL_DIR=\\Aspell\\bin") + 1]; |
| 142 |
142 |
| 143 snprintf(settingsdir, sizeof(settingsdir), "PIDGINHOME=%s", path); |
143 snprintf(settingsdir, sizeof(settingsdir), "PURPLEHOME=%s", path); |
| 144 printf("Setting settings dir: %s\n", settingsdir); |
144 printf("Setting settings dir: %s\n", settingsdir); |
| 145 putenv(settingsdir); |
145 putenv(settingsdir); |
| 146 |
146 |
| 147 snprintf(aspelldir, sizeof(aspelldir), "PIDGIN_ASPELL_DIR=%s\\Aspell\\bin", path); |
147 snprintf(aspelldir, sizeof(aspelldir), "PIDGIN_ASPELL_DIR=%s\\Aspell\\bin", path); |
| 148 printf("%s", aspelldir); |
148 printf("%s", aspelldir); |