Last active
November 20, 2017 23:18
-
-
Save icy/3e7d3575a3409fb6e73342ac8ea92d26 to your computer and use it in GitHub Desktop.
aftershot3.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# AfterShot Pro startup script | |
# make symlinks to this script anywhere in your $PATH | |
# See also : http://forum.corel.com/EN/viewtopic.php?f=94&t=57338 | |
FindPath() | |
{ | |
if [ "`readlink "$0"`" = "" ]; then | |
pushd $(dirname "$0") >/dev/null | |
FP="$(pwd)" | |
popd >/dev/null | |
echo "${FP}" | |
else | |
FP=$(readlink "$0"|sed -e "s/ /\\\ /g") | |
echo `dirname "${FP}"` | |
fi | |
} | |
INSTALL_PATH="/opt/AfterShot3(64-bit)" | |
LD_LIBRARY_PATH=${INSTALL_PATH}/lib:${LD_LIBRARY_PATH} | |
XLIB_SKIP_ARGB_VISUALS=1 | |
export LD_LIBRARY_PATH | |
export XLIB_SKIP_ARGB_VISUALS | |
echo "Install Path: " ${INSTALL_PATH} | |
echo "LD_PATH: " $LD_LIBRARY_PATH | |
echo "XLIB_SKIP_ARGB_VISUALS:" $XLIB_SKIP_ARGB_VISUALS | |
unset XLIB_SKIP_ARGB_VISUALS | |
if [ -x "${INSTALL_PATH}/bin/AfterShot" ] | |
then | |
cd "${INSTALL_PATH}/bin" | |
#ldd "./AfterShotPro" | |
exec "$INSTALL_PATH/bin/AfterShot" "$@" | |
#echo "all is well in the world" | |
else | |
echo "didn't run it (obviously)" | |
fi | |
exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment