run_desktop.sh: fix single app running

This commit is contained in:
Thomas Farstrike
2025-11-05 09:01:48 +01:00
parent 1dcf5d8cc6
commit 83e71a7785
+1 -8
View File
@@ -59,14 +59,7 @@ pushd internal_filesystem/
if [ -f "$script" ]; then
"$binary" -v -i "$script"
elif [ ! -z "$script" ]; then # it's an app name
scriptdir="apps/$script"
if [ ! -d "$scriptdir" ]; then
scriptdir="builtin/apps/$script"
fi
if [ ! -d "$scriptdir" ]; then
echo "ERROR: no app found by the name '$script'"
exit 1
fi
scriptdir="$script"
echo "Running app from $scriptdir"
"$binary" -X heapsize=$HEAPSIZE -v -i -c "$(cat boot_unix.py main.py) ; import mpos.apps; mpos.apps.start_app('$scriptdir')"
else