summarylogtreecommitdiffstats
path: root/zbstudio.patch
blob: 531206b36079924093c0aaa43827101119e46b44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/zbstudio/zbstudio.in
+++ b/zbstudio/zbstudio.in
@@ -1,6 +1,4 @@
-#!/bin/bash
-
-if [[ "$(uname -m)" == "x86_64" ]]; then ARCH="x64"; else ARCH="x86"; fi
-CWD="$PWD" # save the current directory, as it's going to change
-
-(cd "@IDE_DATADIR@"; bin/linux/$ARCH/lua src/main.lua zbstudio -cwd "$CWD" "$@" 2>/dev/null) &
+#!/usr/bin/env sh
+CWD=$(pwd)
+cd "@IDE_DATADIR@"
+exec @LUA_EXECUTABLE@ src/main.lua zbstudio -cwd "$CWD" "$@"