xnview wrote:...
But I agree +1, it will be better to have this kind of xnview.sh by default instead the actual one here:
Why?
Because in this case, it is possible to start from any folder, and it is also possible to use under nautilus explorer ( for example) the contextual menu "Open With" ... image_file.jpg for example to open this image with XnViewMP (do not forgot the quotes in this case here: "$@" instead $@).
... But it is also possible to have 2 or more xnview.sh files samples in your .tgz package ( xnview01.sh, xnview02.sh, and so....) for specifics use.
The suggested new kind of xnview.sh:
Code: Select all
#!/bin/sh
dirname=`dirname $0`
LD_LIBRARY_PATH=$dirname
export LD_LIBRARY_PATH
QT_PLUGIN_PATH=$dirname
export QT_PLUGIN_PATH
$dirname/xnview "$@"
the actual xnview.sh by default:
Code: Select all
#!/bin/sh
LD_LIBRARY_PATH=./
export LD_LIBRARY_PATH
QT_PLUGIN_PATH=./
export QT_PLUGIN_PATH
./xnview