snap: Avoid hardcoding the TESSDATA_PREFIX environment variable

This patch allows the user to store Tesseract data in custom paths
using the TESSDATA_PREFIX environment variable.

Previously it is hardcoded to $SNAP_USER_COMMON.

Signed-off-by: 林博仁(Buo-ren Lin) <buo.ren.lin@gmail.com>
This commit is contained in:
林博仁(Buo-ren Lin) 2024-08-11 16:30:03 +08:00
parent 88c3e3360f
commit ca47315676

View File

@ -20,7 +20,6 @@ apps:
command: usr/local/bin/tesseract
environment:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/local/lib
TESSDATA_PREFIX: $SNAP_USER_COMMON
plugs:
- home
- removable-media