From 0d70b1640f60983830255b36faffeacd949f3f07 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Mon, 11 May 2026 11:06:10 +0300 Subject: [PATCH] attempt to restrict nheko as well --- bash/usr-local-bin/nheko | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/bash/usr-local-bin/nheko b/bash/usr-local-bin/nheko index b5cff2e..37e45e4 100755 --- a/bash/usr-local-bin/nheko +++ b/bash/usr-local-bin/nheko @@ -3,9 +3,19 @@ # desired. set -x -if [[ "$1" == -* ]]; then - flatpak run --env=LANGUAGE=fi:eo:en im.nheko.Nheko//master "$@" + +if [ -f "$HOME/.local/bin/_a-usrlocalbin-functions.bash" ]; then + . $HOME/.local/bin/_a-usrlocalbin-functions.bash +elif [ -f /usr/local/bin/_a-usrlocalbin-functions.bash ]; then + . /usr/local/bin/_a-usrlocalbin-functions.bash else - flatpak run --env=LANGUAGE=fi:eo:en im.nheko.Nheko//master --compact --profile "$@" + echo "Library _a-usrlocalbin-functions.bash not found." + exit 1 +fi + +if [[ "$1" == -* ]]; then + _gigaramhalfcpu flatpak run --env=LANGUAGE=fi:eo:en im.nheko.Nheko//master "$@" +else + _gigaramhalfcpu flatpak run --env=LANGUAGE=fi:eo:en im.nheko.Nheko//master --compact --profile "$@" fi set +x