@@ -58,6 +58,11 @@ environment:
58
58
LD_LIBRARY_PATH : $SNAP/lib:$SNAP/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:$SNAP/gnome-platform/usr/lib:$SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:$SNAP/usr/lib:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/lapack:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/blas:$SNAP/npu-libs
59
59
# Ensure the gmic plugin can correctly locate the QT plugins
60
60
QT_PLUGIN_PATH : $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/qt6/plugins
61
+ GIMP3_LOCALEDIR : $SNAP/usr/share/locale
62
+ # Lua goat exercise considered unstable upstream: https://gitlab.gnome.org/GNOME/gimp/-/commit/78665ca3723f723ac313fdaeef5b62d41ab6b48d
63
+ # The extension will fail on GIMP startup but commenting these lines avoids the risk of a nasty crash loop
64
+ # LUA_PATH: $SNAP/usr/share/lua/5.1/?.lua;$SNAP/usr/share/lua/5.1/lgi/?.lua;$SNAP/usr/share/lua/5.1/lgi/override/?.lua
65
+ # LUA_CPATH: $SNAP/usr/lib/x86_64-linux-gnu/lua/5.1/?.so
61
66
62
67
apps :
63
68
gimp :
@@ -245,17 +250,17 @@ parts:
245
250
- poppler-data
246
251
override-stage : |
247
252
# fix gimp python interpreters file
248
- cat <<EOF > $CRAFT_PART_INSTALL/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/gimp/2.99/interpreters/pygimp.interp
249
- python=/snap/"${SNAPCRAFT_PROJECT_NAME}"/current/ usr/bin/python3
250
- python3=/snap/"${SNAPCRAFT_PROJECT_NAME}"/current/ usr/bin/python3
251
- /usr/bin/python=/snap/"${SNAPCRAFT_PROJECT_NAME}"/current/ usr/bin/python3
252
- /usr/bin/python3=/snap/"${SNAPCRAFT_PROJECT_NAME}"/current/ usr/bin/python3
253
+ cat <<EOF > ${ CRAFT_PART_INSTALL} /usr/lib/${ CRAFT_ARCH_TRIPLET_BUILD_FOR} /gimp/2.99/interpreters/pygimp.interp
254
+ python=/usr/bin/python3
255
+ python3=/usr/bin/python3
256
+ /usr/bin/python=/usr/bin/python3
257
+ /usr/bin/python3=/usr/bin/python3
253
258
:Python:E::py::python3:
254
259
EOF
255
260
# update gimp's plugin search path so it will pick up plugins mounted over snapd's content interface
256
261
current_path=$(grep "# (plug-in-path" ${CRAFT_PART_INSTALL}/etc/gimp/2.99/gimprc | cut -d '"' -f2)
257
- add_dir=/snap/" ${SNAPCRAFT_PROJECT_NAME}" /current/openvino-ai-plugins-gimp/gimp-plugins
258
- echo "(plug-in-path \"${current_path}:${add_dir}\")" >> $CRAFT_PART_INSTALL/etc/gimp/2.99/gimprc
262
+ add_dir=/snap/${SNAPCRAFT_PROJECT_NAME}/current/openvino-ai-plugins-gimp/gimp-plugins
263
+ echo "(plug-in-path \"${current_path}:${add_dir}\")" >> ${ CRAFT_PART_INSTALL} /etc/gimp/2.99/gimprc
259
264
craftctl default
260
265
261
266
command-chain-openvino :
0 commit comments