From 739c613fe297cc7f2e693531c56342ed4cc0b062 Mon Sep 17 00:00:00 2001 From: Bruno Date: Sun, 29 Dec 2024 17:01:00 -0300 Subject: [PATCH] build/linux: Bundle "share/libthai" on AppImage too Following 4cbb9360 Most of the distros provides the dictionary pre-installed but some like Gentoo not. So, let's bundle "share/libthai" for maximum portability. --- build/linux/appimage/3_dist-gimp-goappimage.sh | 3 +++ build/linux/appimage/AppRun | 1 + 2 files changed, 4 insertions(+) diff --git a/build/linux/appimage/3_dist-gimp-goappimage.sh b/build/linux/appimage/3_dist-gimp-goappimage.sh index 2275bbd9ed..8ffe5fe266 100644 --- a/build/linux/appimage/3_dist-gimp-goappimage.sh +++ b/build/linux/appimage/3_dist-gimp-goappimage.sh @@ -296,6 +296,9 @@ sed -i '/kudo/d' $USR_DIR/share/metainfo/$APP_ID.appdata.xml sed -i "s/date=\"TODO\"/date=\"`date --iso-8601`\"/" $USR_DIR/share/metainfo/$APP_ID.appdata.xml ### mypaint brushes bund_usr "$UNIX_PREFIX" "share/mypaint-data/1.0" +### Needed for 'th' word breaking in Text tool etc +bund_usr "$UNIX_PREFIX" "share/libthai" +conf_app LIBTHAI_DICTDIR "share/libthai" ### Needed for full CJK and Cyrillic support in file-pdf bund_usr "$UNIX_PREFIX" "share/poppler" ### file-wmf support (not portable, depends on how the distro deals with PS fonts) diff --git a/build/linux/appimage/AppRun b/build/linux/appimage/AppRun index d04e1221c7..2d5b6c2aee 100644 --- a/build/linux/appimage/AppRun +++ b/build/linux/appimage/AppRun @@ -33,6 +33,7 @@ export GIMP3_LOCALEDIR="$HERE"/GIMP3_LOCALEDIR_WILD export GIMP3_SYSCONFDIR="$HERE"/GIMP3_SYSCONFDIR_WILD ## Other paths (feature-related) +export LIBTHAI_DICTDIR="$HERE"/LIBTHAI_DICTDIR_WILD export GI_TYPELIB_PATH="$HERE"/GI_TYPELIB_PATH_WILD:"$GI_TYPELIB_PATH" export PYTHONHOME="$HERE"/usr export PYTHONDONTWRITEBYTECODE=1