summarylogtreecommitdiffstats
path: root/cura.sh
diff options
context:
space:
mode:
authorGennadiy Mykhailiuta2022-07-14 21:19:25 +0000
committerGennadiy Mykhailiuta2022-07-14 21:19:25 +0000
commitb339ddfca54a1618ef1ce5acf45627048389f2b2 (patch)
tree66ab022e6aa7beb4a45576864f9642208739fc61 /cura.sh
parent666030453a98a3af032b7d7e701e5c86da1b0756 (diff)
downloadaur-b339ddfca54a1618ef1ce5acf45627048389f2b2.tar.gz
Update cura.sh
Diffstat (limited to 'cura.sh')
-rw-r--r--cura.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/cura.sh b/cura.sh
index 21f847908dcb..66dd2fed9eac 100644
--- a/cura.sh
+++ b/cura.sh
@@ -3,11 +3,14 @@
# For easier maintainability
CURA_VERSION="VERSION_PLACEHOLDER"
CURA_BIN_PATH="/opt/Ultimaker-Cura/Ultimaker-Cura-$CURA_VERSION.AppImage"
+FIXUPS="LD_PRELOAD=/usr/lib/libstdc++.so.6"
# Get full path to avoid Error Message in cura
-[[ -n $(dirname "$1") ]] && filePath="$(realpath "$1")" || filePath="$1"
+[ -n $(dirname "$1") ] && filePath="$(realpath "$1")" || filePath="$1"
# Start cura-appimage without Parameter if not given. ( Avoiding cura Error Message "No file found" )
-[[ -z $filePath ]] && $CURA_BIN_PATH || $CURA_BIN_PATH "$filePath"
-
-exit
+if [ -z $filePath ]; then
+ env ${FIXUPS} $CURA_BIN_PATH
+else
+ env ${FIXUPS} $CURA_BIN_PATH "$filePath"
+fi