Ok,
whenever I double click on the .sh file this is what I get:
Code:
#!/bin/sh
function error()
{
kdialog --error "$1" --title "Could not install Digital Handwriting Page Viewer"
exit 1
}
if [ -z `which uudecode` ]
then
error "You must have uudecode installed to run this installer."
fi
if [ -z `which tar` ]
then
error "You must have tar installed to run this installer."
fi
if [ -z `which bzcat` ]
then
error "You must have bzcat installed to run this installer."
fi
INSTALL=`kdialog --getexistingdirectory $PWD`
if [ -z $INSTALL ]
then
error "You must specify an install directory that already exists."
fi
if [ `which kde-config` ]
then
#DESKTOP=`kde-config --expandvars --install xdgdata-apps`
DESKTOP="`kde-config --localprefix`/share/applnk"
mkdir -p $DESKTOP
touch $DESKTOP/DHWPageViewer.desktop || error "Could not create menu entry."
( cat > $DESKTOP/DHWPageViewer.desktop ) << DESKTOP_END
[Desktop Entry]
Encoding=UTF-8
Type=Application
Exec=/bin/sh $INSTALL/DHWPageViewer2.0/wrapper
Icon=$INSTALL/DHWPageViewer2.0/icon.png
Name=Digital Handwriting Page Viewer
Categories=Qt;KDE;Graphics
DESKTOP_END
kbuildsycoca --menutest &> /dev/null
fi
mkdir -p $INSTALL || error "Could not write to install directory."
cd $INSTALL
(uudecode -o /dev/stdout | bzcat -c | tar -xv ) << ENDOFWRAPPER
begin-base64 644 encoded.dat
I know for a fact the program works because whenever I had SUSE as I said I could install it using the .sh file without any problems