You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does anyone know if there's an environment variable in RIME that I can set to a directory so that RIME searches in that directory the files with extension *.dict.yaml and *.schema.yaml?
I'm asking because I have written a Guix package that installs a schema that I have defined, but it seems that in Guix packages can't copy files to the ~/.config directory (therefore, it is not possible to copy them to ~/.config/ibus/rime. A possible way to solve this problem is by making RIME lookup such files in a directory which could be possible by setting an environment variable, that way my package doesn't need to copy files to ~/.config/ibus/rime instead I'd make Guix copy them to any directory and that directory would be referenced in the environment variable.
Additional information
This is the definition of my package in Guix.
(define-module (rime)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix gexp)
#:use-module (guix build-system trivial)
#:use-module (guix git-download))
(define-public rime-wubi-8105
(package
(name "rime-wubi-8105")
(version "1.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/rdrg109/wubi-8105")
(commit "3e81f26ac6f261ad5bb361ef23bc4a7df6a088d1")))
(file-name (git-file-name name version))
(sha256
(base32
"133vf7gsicqikv4kyl1rx0d1yiblgihis1x8gm9h21k59ql8gadn"))))
(build-system trivial-build-system)
(arguments
(list
#:modules `((guix build utils))
#:builder
#~(begin
(use-modules (guix build utils))
(chdir (assoc-ref %build-inputs "source"))
(install-file "wubi86_8105.dict.yaml" (string-append #$output "/share/rime-data"))
(install-file "wubi86_8105.schema.yaml" (string-append #$output "/share/rime-data")))))
(synopsis "Wubi86 input method of standard Chinese characters for RIME")
(description "This package contains a RIME dictionary and schema for the 86 versionof Wubi, a shape-based input method for Chinese characters. The domainof characters are those characters from the Table of General StandardChinese Characters (https://www.wikidata.org/wiki/Q14941454).")
(home-page "https://github.com/rdrg109/wubi-8105")
(license lgpl3)))
However, this directory is not look up by RIME. As far as I'm concerned, the only directory that is looked up by RIME is ~/.config/ibus/rime. I wish there were a variable that I could set so that I can make RIME look up my dictionaries at /home/rdrg/.guix-profile/share/rime-data.
The text was updated successfully, but these errors were encountered:
The problem
Does anyone know if there's an environment variable in RIME that I can set to a directory so that RIME searches in that directory the files with extension
*.dict.yaml
and*.schema.yaml
?I'm asking because I have written a Guix package that installs a schema that I have defined, but it seems that in Guix packages can't copy files to the
~/.config
directory (therefore, it is not possible to copy them to~/.config/ibus/rime
. A possible way to solve this problem is by making RIME lookup such files in a directory which could be possible by setting an environment variable, that way my package doesn't need to copy files to~/.config/ibus/rime
instead I'd make Guix copy them to any directory and that directory would be referenced in the environment variable.Additional information
This is the definition of my package in Guix.
I can install that package by executing
$ guix package -L ~/my/packages/ -i rime-wubi-8105
which result in the following directory
$ tree -a ~/.guix-profile/share/rime-data
However, this directory is not look up by RIME. As far as I'm concerned, the only directory that is looked up by RIME is ~/.config/ibus/rime. I wish there were a variable that I could set so that I can make RIME look up my dictionaries at
/home/rdrg/.guix-profile/share/rime-data
.The text was updated successfully, but these errors were encountered: