--- ./source.orig/blender/python/BPY_interface.c 2004-11-27 19:32:25.000000000 +0100 +++ ./source/blender/python/BPY_interface.c 2004-12-29 17:35:50.000000000 +0100 @@ -1373,14 +1373,8 @@ if( BLI_exists( homedir ) ) return homedir; - /* otherwise, use argv[0] (bprogname) to get .blender/ in - * Blender's installation dir */ - s = BLI_last_slash( bprogname ); - - i = s - bprogname + 1; - - PyOS_snprintf( bprogdir, i, bprogname ); - BLI_make_file_string( "/", homedir, bprogdir, ".blender/" ); + /* otherwise, use /usr/lib/blender */ + BLI_make_file_string( "/", homedir, "/usr/lib", "blender/" ); return homedir; } --- source.orig/blender/src/language.c 2004-11-08 16:46:57.000000000 +0100 +++ source/blender/src/language.c 2005-01-02 21:25:53.302585856 +0100 @@ -317,23 +317,30 @@ strcpy(name, bundlePath); strcat(name, "/Contents/Resources/.Blanguages"); #else - /* Check the CWD. Takes care of the case where users - * unpack blender tarball; cd blender-dir; ./blender */ - strcpy(name, ".blender/.Blanguages"); -#endif + /* Check the standar location. Takes care of the case + * in which the distribution installs blender */ + strcpy(name, "/usr/lib/blender/.Blanguages"); + lines= BLI_read_file_as_lines(name); - + if(lines == NULL) { - /* If not found in .blender, try current dir */ - strcpy(name, ".Blanguages"); + /* Check the CWD. Takes care of the case where users + * unpack blender tarball; cd blender-dir; ./blender */ + strcpy(name, ".blender/.Blanguages"); +#endif lines= BLI_read_file_as_lines(name); + if(lines == NULL) { - error("File \".Blanguages\" not found"); - return 0; + /* If not found in .blender, try current dir */ + strcpy(name, ".Blanguages"); + lines= BLI_read_file_as_lines(name); + if(lines == NULL) { + error("File \".Blanguages\" not found"); + return 0; + } } } } - for (l= lines; l; l= l->next) { char *line= l->link;