https://bugs.documentfoundation.org/show_bug.cgi?id=157713
Bug ID: 157713 Summary: User-configuration location for language packs Product: LibreOffice Version: 7.6.2.1 release Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: medium Component: Localization Assignee: libreoffice-bugs@lists.freedesktop.org Reporter: maxim.courno...@gmail.com Hi, I'm using GNU Guix as my package manager/distribution and would like to package the language packs. It seems like on traditional distributions such as Debian, the data files goes to a global place such as: /usr/lib/libreoffice/program/resource/fr, with additional files put under /usr/lib/libreoffice/share. Guix is a functional package manager, and for this reason it does not follow the file hierachy standard (FHS) and its conventional locations such as /usr/lib. Instead, each package gets installed to its own prefix, e.g. my libreoffice lives at /gnu/store/4z2gglhrzr5w6myw6la86s7lw50zlwml-libreoffice-7.5.4.2, and a user profile is assembled under ~/.guix-profile, e.g. I have: $ ll ~/.guix-profile/lib/libreoffice/ total 2296 -r--r--r-- 7 root root 1842305 31 déc. 1969 CREDITS.fodt dr-xr-xr-x 1 root root 92 31 déc. 1969 help/ -r--r--r-- 7 root root 233913 31 déc. 1969 LICENSE -r--r--r-- 7 root root 263307 31 déc. 1969 LICENSE.html -r--r--r-- 1 root root 3706 31 déc. 1969 NOTICE dr-xr-xr-x 1 root root 68 31 déc. 1969 presets/ dr-xr-xr-x 1 root root 7894 31 déc. 1969 program/ dr-xr-xr-x 1 root root 24 31 déc. 1969 readmes/ dr-xr-xr-x 1 root root 442 31 déc. 1969 share/ Is there currently a mechanism in LibreOffice to be able to locate them in such an environment? Typically, what is used in Guix for that are environment variables. The use on an environment variable such as LO_LOCPATH would provide the most flexible means of specifying the language packs data location and could be made to work across multiple profiles. Alternatively, if LibreOffice locates the language pack data files relatively to itself, this could work in a given profile where libreoffice is installed along its language packs. For example, LibreOffice could detect it is at /home/maxim/.guix-profile/bin/libreoffice; and try to access its language packs relatively via "../share/libreoffice/language-packs (or some other other default path). I can volunteer to add support for the new LO_LOCPATH environment variable, if that seems reasonable. Thanks! -- You are receiving this mail because: You are the assignee for the bug.