diff options
author | Gennadiy Mykhailiuta | 2022-07-14 21:19:25 +0000 |
---|---|---|
committer | Gennadiy Mykhailiuta | 2022-07-14 21:19:25 +0000 |
commit | b339ddfca54a1618ef1ce5acf45627048389f2b2 (patch) | |
tree | 66ab022e6aa7beb4a45576864f9642208739fc61 /cura.sh | |
parent | 666030453a98a3af032b7d7e701e5c86da1b0756 (diff) | |
download | aur-b339ddfca54a1618ef1ce5acf45627048389f2b2.tar.gz |
Update cura.sh
Diffstat (limited to 'cura.sh')
-rw-r--r-- | cura.sh | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 |