sdcv: fix hardcoded prefix path (#7162)

This commit is contained in:
Al-buharie 2021-07-19 00:28:56 +08:00 committed by GitHub
parent f0adf8c2da
commit a7b71b8de6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -uNr sdcv-0.5.3/src/sdcv.cpp sdcv-0.5.3.mod/src/sdcv.cpp
--- sdcv-0.5.3/src/sdcv.cpp 2020-08-14 18:06:51.000000000 +0800
+++ sdcv-0.5.3.mod/src/sdcv.cpp 2021-07-19 00:10:19.833094383 +0800
@@ -136,7 +136,7 @@
if (stardict_data_dir)
data_dir = stardict_data_dir;
else
- data_dir = "/usr/share/stardict/dic";
+ data_dir = "@TERMUX_PREFIX@/share/stardict/dic";
}
} else {
data_dir = get_impl(opt_data_dir);