Skip to content

Commit 6a825be

Browse files
committed
Fix set LIBTHAI_DICTDIR env var
1 parent c04b154 commit 6a825be

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sharun"
3-
version = "0.5.6"
3+
version = "0.5.7"
44
readme = "README.md"
55
license = "MIT"
66
repository = "https://github.com/VHSgunzo/sharun"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ This can be useful, for example, to use [ld-preload-open](https://github.com/fri
192192
|`GSETTINGS_SCHEMA_DIR` | `${SHARUN_DIR}/share/glib-2.0/schemas`|
193193
|`TERMINFO` | `${SHARUN_DIR}/share/terminfo`|
194194
|`MAGIC` | `${SHARUN_DIR}/share/file/misc/magic.mgc`|
195+
|`LIBTHAI_DICTDIR` | `${SHARUN_DIR}/share/libthai`|
195196
|||
196197
|---|---|
197198
|`FONTCONFIG_FILE` | `${SHARUN_DIR}/etc/fonts/fonts.conf`|

src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,9 +771,8 @@ fn main() {
771771
}
772772
}
773773
"libthai" => {
774-
let libhthai = &entry_path.join("libthai");
775-
if libthai.exists() {
776-
env::set_var("LIBTHAI_DICTDIR", libthai)
774+
if entry_path.join("thbrk.tri").exists() {
775+
env::set_var("LIBTHAI_DICTDIR", entry_path)
777776
}
778777
}
779778
"glib-2.0" => {

0 commit comments

Comments
 (0)