XnView MP 0.72 linux can't open files from Double Commander
Posted: Fri Jun 05, 2015 9:33 am
I can't open image files in XnView by clicking on the file in Double Commander file manager. I have to use script below. Any other programs open files from Double Commander properly.
export LD_LIBRARY_PATH=/opt/XnView/lib
export QT_PLUGIN_PATH=/opt/XnView/lib
if [ $# -lt 1 ]; then
/opt/XnView/XnView
else
PARAM="$@"
MTYP="${PARAM:0:7}"
if [ "$MTYP" = "file://" ]; then
PARAM="$(perl -MURI::Escape -e 'print uri_unescape($ARGV[0]);' "$PARAM")"
PARAM="${PARAM//file:\/\//}"
fi
/opt/XnView/XnView "$PARAM"
fi
export LD_LIBRARY_PATH=/opt/XnView/lib
export QT_PLUGIN_PATH=/opt/XnView/lib
if [ $# -lt 1 ]; then
/opt/XnView/XnView
else
PARAM="$@"
MTYP="${PARAM:0:7}"
if [ "$MTYP" = "file://" ]; then
PARAM="$(perl -MURI::Escape -e 'print uri_unescape($ARGV[0]);' "$PARAM")"
PARAM="${PARAM//file:\/\//}"
fi
/opt/XnView/XnView "$PARAM"
fi