Commit 76ff6e223e960721be5fad32722b60cb44e7fa26
1 parent
de621e88
Exists in
master
and in
3 other branches
Fixing windows version.
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
src/objects/window/terminal.c
| ... | ... | @@ -313,9 +313,14 @@ |
| 313 | 313 | for(ix=0;keys[ix];ix++) { |
| 314 | 314 | g_autofree gchar * value = g_key_file_get_string(descriptor->key_file,"environment",keys[ix],NULL); |
| 315 | 315 | if(value) { |
| 316 | +#ifdef _WIN32 | |
| 317 | + g_autofree gchar * env = g_strconcat(keys[ix],"=",value,NULL); | |
| 318 | + putenv(env); | |
| 319 | +#else | |
| 316 | 320 | if(setenv(keys[ix],value,1)) { |
| 317 | 321 | g_warning("Can't set \"%s\" to \"%s\"",keys[ix],value); |
| 318 | 322 | } |
| 323 | +#endif // _WIN32 | |
| 319 | 324 | } |
| 320 | 325 | } |
| 321 | 326 | ... | ... |