Closed Arfrever closed 3 years ago
Hi, thank you for the suggestions.
We do not have a plan to support run-time configurations of the install paths, because it introduces additional edge cases we need to care about.
Instead, we have supported $XDG_CONFIG_HOME as mentioned in #474
It would be useful if Mozc supported environmental variables for additional run-time configurability. Suggested environmental variables:
MOZC_SERVER_DIRECTORY
This variable would override build-timeserver_dir
GYP option (/usr/lib/mozc
by default).MOZC_DOCUMENTS_DIRECTORY
This variable would override build-timedocument_dir
GYP option (/usr/lib/mozc/documents
by default).MOZC_ZINNIA_MODEL_FILE
This variable would override build-timezinnia_model_file
GYP option (e.g./usr/share/tegaki/models/zinnia/handwriting-ja.model
).MOZC_CONFIGURATION_DIRECTORY
This variable would set Mozc configuration directory (e.g./home/username/.mozc
).HOME
This variable would be used on Unix-like systems for calculating Mozc configuration directory ifMOZC_CONFIGURATION_DIRECTORY
variable is not set. IfMOZC_CONFIGURATION_DIRECTORY
variable is not set andHOME
variable is set, then${HOME}/.mozc
would be used. If neitherMOZC_CONFIGURATION_DIRECTORY
variable norHOME
variable is set, then preexisting logic would be used, which gets home directory from/etc/passwd
file.Patch: mozc-environmental_variables.patch.txt