Notes: Each time I would delete the folder it would be installed to to make sure it wasn't affected by previous installations.
System Wide Install: NO (and YES, same result)
Windows Manager Used: Gnome (Running Linux Mint 19, which uses Cinnamon, which is based on GNOME) (also tried Other, same result)
Install Menu Icons: NO (and YES, same result)
Create Desktop Shortcuts: NO (and YES, same result)
Set Permissions: NO (and YES, same result)
Error Message (after I removed all desktop files):
Error executing post installation script
/mnt/SSD Gaming/opt/PlaneShift/wrapperscript.sh
\/mnt/SSD Gaming/opt/PlaneShift/wrapperscript.sh: line 12: cd: /mnt/SSD/PlaneShift: No such file or directory
chgrp: changing group of '/home/phicksur/Desktop/PlaneShift-v0.6.3-x64.run': Operation not permitted
chgrp: changing group of '/home/phicksur/Desktop/unscript.sh': Operation not permitted
chgrp: changing group of '/home/phicksur/Desktop': Operation not permitted
rm: cannot remove '/home/phicksur/Desktop/wrapperscript.sh': No such file or directorySo, the bottom line is the line 12 of the wrapperscript.sh installer isn't working.
What I am doing is downloading
THIS FILE, then making it executable, and running it.
Here is the whole Script:
#!/bin/bash
INPUT=$1
SYS=$2
KDEGNOME=$3
DESKCUT=$4
MENU=$5
USERGROUP=$6
CHMOD=$7
PERMS=$8
cd "${INPUT}"/PlaneShift
echo -e "#!/bin/bash\n\ncd $PWD\nrm /usr/bin/planeshift\nrm /usr/share/applications/planeshift*\nrm ~/Desktop/PlaneShift.desktop\nrm ~/Desktop/PlaneShift\ Uninstaller.desktop\nrm -Rf $PWD/unscript.sh" >> unscript.sh
if [[ ${KDEGNOME} == "kde" ]];
then
echo -e "[Desktop Entry]\nEncoding=UTF-8\nGenericName=PlaneShift\nName=PlaneShift\nExec=$PWD/pslaunch\nIcon=$PWD/support/icons/psicon.png\nTerminal=false\nType=Application\nCategories=Qt;KDE;Games;" >> planeshift.desktop
echo -e "[Desktop Entry]\nEncoding=UTF-8\nGenericName=PlaneShift Uninstaller\nName=PlaneShift Uninstaller\nExec=$PWD/uninstall\nIcon=\nTerminal=false\nType=Application\nCategories=Qt;KDE;Games;" >> planeshiftuninstall.desktop
if [[ ${MENU} == "yes" && ( $USER == "root" || `stat -c'%u' "${INPUT}"` == "0" ) ]];
then
cp planeshift.desktop /usr/share/applications/
cp planeshiftuninstall.desktop /usr/share/applications/
chmod 777 /usr/share/applications/planeshift*
fi
if [[ ${DESKCUT} == "yes" ]];
then
mv planeshift.desktop ~/Desktop/PlaneShift.desktop
mv planeshiftuninstall.desktop ~/Desktop/Uninstall\ PlaneShift.desktop
else
rm planeshift.desktop
rm planeshiftuninstall.desktop
fi
fi
if [[ ${KDEGNOME} == "gnome" ]];
then
echo -e "[Desktop Entry]\nEncoding=UTF-8\nGenericName=PlaneShift\nName=PlaneShift\nExec=$PWD/pslaunch\nIcon=$PWD/support/icons/psicon.png\nTerminal=false\nType=Application\nCategories=GNOME;Application;Game;" >> planeshift.desktop
echo -e "[Desktop Entry]\nEncoding=UTF-8\nGenericName=PlaneShift Uninstaller\nName=PlaneShift Uninstaller\nExec=$PWD/uninstall\nIcon=\nTerminal=false\nType=Application\nCategories=GNOME;Application;Game;" >> planeshiftuninstall.desktop
if [[ ${MENU} == "yes" && ( $USER == "root" || `stat -c'%u' "${INPUT}"` == "0" ) ]];
then
cp planeshift.desktop /usr/share/applications/
cp planeshiftuninstall.desktop /usr/share/applications/
chmod 777 /usr/share/applications/planeshift*
fi
if [[ ${DESKCUT} == "yes" ]];
then
mv planeshift.desktop ~/Desktop/PlaneShift.desktop
mv planeshiftuninstall.desktop ~/Desktop/Uninstall\ PlaneShift.desktop
else
rm planeshift.desktop
rm planeshiftuninstall.desktop
fi
fi
if [[ ${SYS} == "yes" && ( $USER == "root" || `stat -c'%u' "${INPUT}"` == "0" ) ]];
then
echo -e "#!/bin/bash\n\nexec $PWD/pslaunch \"\$@\"" >> planeshift
mv $PWD/planeshift /usr/bin/planeshift
chmod 770 /usr/bin/planeshift
chown $USER:games /usr/bin/planeshift*
if [[ ${PERMS} == "yes" ]];
then
chmod -R ${CHMOD} $PWD
chown -R ${USERGROUP} $PWD
rm $PWD/wrapperscript.sh
else
chown -R $USER $PWD
chgrp -R games $PWD
chmod -R 770 $PWD
rm $PWD/wrapperscript.sh
fi
exit
else
if [[ ${PERMS} == "yes" ]];
then
chmod -R ${CHMOD} $PWD
chown -R ${USERGROUP} $PWD
rm $PWD/wrapperscript.sh
else
chown -R $USER $PWD
chgrp -R games $PWD
chmod -R 770 $PWD
rm $PWD/wrapperscript.sh
fi
exit
fi