diff options
author | takase1121 <20792268+takase1121@users.noreply.github.com> | 2021-10-21 13:29:07 +0800 |
---|---|---|
committer | takase1121 <20792268+takase1121@users.noreply.github.com> | 2021-10-21 13:29:07 +0800 |
commit | 21912c536374240bd37b5d6dd34e97caaf2ed4a7 (patch) | |
tree | 163960a1596613448f53c8bc47de6e6f56a9113e | |
parent | 6b2518a22f46e6571e3da6050c53790d03711e55 (diff) | |
download | lite-xl-plugins-21912c536374240bd37b5d6dd34e97caaf2ed4a7.tar.gz lite-xl-plugins-21912c536374240bd37b5d6dd34e97caaf2ed4a7.zip |
add config.fontconfig.prefix
-rw-r--r-- | plugins/fontconfig.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/fontconfig.lua b/plugins/fontconfig.lua index a3e0f57..9702422 100644 --- a/plugins/fontconfig.lua +++ b/plugins/fontconfig.lua @@ -5,6 +5,8 @@ local core = require "core" local style = require "core.style" local config = require "core.config" +config.plugins.fontconfig = { prefix = "" } + --[[ Example config (put it in user module): @@ -23,7 +25,7 @@ local config = require "core.config" local function resolve_font(spec) local scan_rate = 1 / config.fps - local proc = subprocess.start({ "fc-match", "-s", "-f", "%{file}\n", spec }, { + local proc = subprocess.start({ config.plugins.fontconfig.prefix .. "fc-match", "-s", "-f", "%{file}\n", spec }, { stdin = subprocess.REDIRECT_DISCARD, stdout = subprocess.REDIRECT_PIPE, stderr = subprocess.REDIRECT_STDOUT |