We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8c623b commit 156247fCopy full SHA for 156247f
1 file changed
AppDir/bin/user-tessdata.hook
@@ -0,0 +1,18 @@
1
+#!/bin/sh
2
+
3
+# make sure our bundled data files can be seen by the app
4
+_tess_userdir=$CONFIGDIR/tessdata
5
+mkdir -p "$_tess_userdir"
6
+for f in "$APPDIR"/share/tessdata/*.traineddata; do
7
+ [ -f "$f" ] || continue
8
+ _dst=${_tess_userdir}/${f##*/}
9
+ [ -f "$_dst" ] || ln -s "$f" "$_dst" || :
10
+done
11
12
+# make sure the app does not attempt to use packagekit to manage languages
13
+_gimage_userconf=$CONFIGDIR/gImageReader/gImageReader.conf
14
+if [ ! -f "$_gimage_userconf" ]; then
15
+ mkdir -p "${_gimage_userconf%/*}"
16
+ echo '[General]' > "$_gimage_userconf"
17
+ echo 'datadirs=1' >> "$_gimage_userconf"
18
+fi
0 commit comments