Minor linux bash tweek 0.33
Posted: Fri Dec 24, 2010 5:11 pm
Comment applies to Ubuntu Linux 10.10. Other OS, other version YMMV.
The 'improved' bash script to launch xnview doesn't seem to work if it's run from anywhere but the working directory. Problem is the first line of code which just returns dirname "." and it really needs to be the absolute path. The fix is simple. Change
to
Note the "-f" to force a canonicalized name.
The 'improved' bash script to launch xnview doesn't seem to work if it's run from anywhere but the working directory. Problem is the first line of code which just returns dirname "." and it really needs to be the absolute path. The fix is simple. Change
Code: Select all
dirname="$(dirname "$(readlink "$0")")"
Code: Select all
dirname="$(dirname "$(readlink -f "$0")")"