From 8ed42e757b56ff4cf14ec178e87766693e56696f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= Date: Fri, 23 Aug 2024 12:16:31 +0200 Subject: [PATCH] Set required environment variables Set LD_LIBRARY_PATH and GI_TYPELIB_PATH when running locally (npm start) to use the local libtouche.so instead of the system library. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7c95a4f..a871380 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "meson:release": "meson setup build --prefix=/usr --buildtype=release", "ninja:build": "ninja -C build", "ninja:install": "ninja -C build install", - "gjs:run": "gjs ./build/install/bin/com.github.joseexposito.touche", + "gjs:run": "LD_LIBRARY_PATH=$(pwd)/build/install/lib64 GI_TYPELIB_PATH=$(pwd)/build/install/lib64/girepository-1.0 gjs ./build/install/bin/com.github.joseexposito.touche", "translate": "node bundle/scripts/translate.js", "lint": "eslint --ext .js,.mjs src", "test": "echo \"Error: no test specified\" && exit 1"