Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.Platforms/AppImage/AppDir/AppRun')
-rw-r--r--UVtools.Platforms/AppImage/AppDir/AppRun5
1 files changed, 5 insertions, 0 deletions
diff --git a/UVtools.Platforms/AppImage/AppDir/AppRun b/UVtools.Platforms/AppImage/AppDir/AppRun
new file mode 100644
index 0000000..f954dda
--- /dev/null
+++ b/UVtools.Platforms/AppImage/AppDir/AppRun
@@ -0,0 +1,5 @@
+#!/bin/sh
+HERE="$(dirname "$(readlink -f "${0}")")"
+export PATH="${HERE}"/usr/bin/:"${PATH}"
+EXEC=$(grep -e '^Exec=.*' "${HERE}"/*.desktop | head -n 1 | cut -d "=" -f 2 | cut -d " " -f 1)
+exec "${EXEC}" $@ \ No newline at end of file