File blender-home-to-datadir.patch of Package blender
--- source/blender/ftfont/intern/FTF_TTFont.cpp
+++ source/blender/ftfont/intern/FTF_TTFont.cpp
@@ -113,7 +113,7 @@
strcpy(messagepath, ".blender/locale");
if (BLI_exist(messagepath) == NULL) { // locale not in current dir
- BLI_make_file_string("/", messagepath, BLI_gethome(), ".blender/locale");
+ BLI_make_file_string("/", messagepath, "/usr/share", "locale");
if(BLI_exist(messagepath) == NULL) { // locale not in home dir
--- source/blender/src/language.c
+++ source/blender/src/language.c
@@ -304,7 +304,7 @@
#if defined (__APPLE__) || (WIN32)
BLI_make_file_string("/", name, BLI_gethome(), ".Blanguages");
#else
- BLI_make_file_string("/", name, BLI_gethome(), ".blender/.Blanguages");
+ BLI_make_file_string("/", name, "/usr/share", "blender/.Blanguages");
#endif
lines= BLI_read_file_as_lines(name);
--- source/blender/src/pub/license_key.c
+++ source/blender/src/pub/license_key.c
@@ -275,7 +275,7 @@
static void create_key_name(char * keyname)
{
- sprintf(keyname, "%s/.BPkey", BLI_gethome());
+ sprintf(keyname, "%s/.BPkey", "/usr/share/blender");
}
void checkhome()