Skip to content

Commit 83e71a7

Browse files
run_desktop.sh: fix single app running
1 parent 1dcf5d8 commit 83e71a7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

scripts/run_desktop.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,7 @@ pushd internal_filesystem/
5959
if [ -f "$script" ]; then
6060
"$binary" -v -i "$script"
6161
elif [ ! -z "$script" ]; then # it's an app name
62-
scriptdir="apps/$script"
63-
if [ ! -d "$scriptdir" ]; then
64-
scriptdir="builtin/apps/$script"
65-
fi
66-
if [ ! -d "$scriptdir" ]; then
67-
echo "ERROR: no app found by the name '$script'"
68-
exit 1
69-
fi
62+
scriptdir="$script"
7063
echo "Running app from $scriptdir"
7164
"$binary" -X heapsize=$HEAPSIZE -v -i -c "$(cat boot_unix.py main.py) ; import mpos.apps; mpos.apps.start_app('$scriptdir')"
7265
else

0 commit comments

Comments
 (0)