diff options
author | Andrea Weikert <elubie@gmx.net> | 2010-07-16 20:02:07 +0400 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2010-07-16 20:02:07 +0400 |
commit | ca3f3317b2ca16f91972f8176c2fa366f1bf5fb5 (patch) | |
tree | e70c451ff65593de0f69224692cb9e608cf4eff1 /source/blender/editors/space_file/file_ops.c | |
parent | 3ef41270f96b4ee3592ec5302a5383399c38ff5d (diff) |
== installation paths ==
* rename BLI_gethome to BLI_getDefaultDocumentFolder to better reflect how this function is used
* replaced BLI_gethome with getenv("HOME") on Linux and Mac where it retrieves location of bookmarks that are inserted as system bookmarks. BLI_gethome was a thin wrapper around these and in this case the user's home directory is what is actually wanted.
Diffstat (limited to 'source/blender/editors/space_file/file_ops.c')
-rw-r--r-- | source/blender/editors/space_file/file_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c index 55a44b36a52..bd7be303e33 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -945,7 +945,7 @@ int file_directory_exec(bContext *C, wmOperator *unused) if ( sfile->params->dir[0] == '~' ) { char tmpstr[sizeof(sfile->params->dir)-1]; strncpy(tmpstr, sfile->params->dir+1, sizeof(tmpstr)); - BLI_join_dirfile(sfile->params->dir, BLI_gethome(), tmpstr); + BLI_join_dirfile(sfile->params->dir, BLI_getDefaultDocumentFolder(), tmpstr); } #ifdef WIN32 |