# This procedure checks if the Release Notes file can be shown.
# Returns 0 in success and 1 if any error occurs.
+
+VIEWER_PROGRAMS="acroread kpdf kghostview xpdf evince"
+
check_enabled()
{
ROOT_DIR=`(cd ${SCRIPT_DIR}/.. ; pwd)`;
# 1. check if there is appropriate PDF files viewer
- for r in acroread kpdf kghostview xpdf ; do
+ for r in ${VIEWER_PROGRAMS} ; do
reader=`which ${r} 2>/dev/null`
if [ "$?" = "0" ] ; then
break;
{
ROOT_DIR=`(cd ${SCRIPT_DIR}/.. ; pwd)`;
# 1. find appropriate PDF files viewer
- for r in acroread kpdf kghostview xpdf ; do
+ for r in ${VIEWER_PROGRAMS} ; do
reader=`which ${r} 2> /dev/null`
if [ "$?" = "0" ] ; then
break;