commit ongoing progress with nanodesk-installer-gxm

This commit is contained in:
Marcus 2023-10-22 19:56:21 +02:00
parent 75367d72e2
commit f3bbf59cee
1 changed files with 10 additions and 4 deletions

View File

@ -45,6 +45,8 @@ gxm-cleanup() {
It is necessary to delete it if you want to continue. It is necessary to delete it if you want to continue.
When deleting it, you will be asked for your password. When deleting it, you will be asked for your password.
Last message was: $(cat $ERRORFILE)
Delete $ERRORFILE ?" | $GXMINFO -buttons "Yes:0,No:1" -default Yes Delete $ERRORFILE ?" | $GXMINFO -buttons "Yes:0,No:1" -default Yes
return $? return $?
} }
@ -88,7 +90,7 @@ gxm-success() {
echo " ----==== nanodesk-installer-gxm ====---- echo " ----==== nanodesk-installer-gxm ====----
nanodesk ${VERSION} nanodesk ${VERSION}
Installation complete! Installation complete! :)
You can now reboot or continue using nanodesk live." | $GXMCMD -buttons Continue:0,Reboot:2 -default Continue You can now reboot or continue using nanodesk live." | $GXMCMD -buttons Continue:0,Reboot:2 -default Continue
return $? return $?
@ -98,7 +100,7 @@ gxm-error() {
echo " ----==== nanodesk-installer-gxm ====---- echo " ----==== nanodesk-installer-gxm ====----
nanodesk ${VERSION} nanodesk ${VERSION}
Installation FAILED!! Installation FAILED!! :(
Last message was: $(cat $ERRORFILE)" | $GXMCMD -buttons Close -default Close Last message was: $(cat $ERRORFILE)" | $GXMCMD -buttons Close -default Close
return $? return $?
@ -134,8 +136,9 @@ exec-gparted() {
exec-nanodesk-installer() { exec-nanodesk-installer() {
# run the installer within xterm # run the installer within xterm
#xterm -e /bin/bash -c "pkexec /usr/sbin/nanodesk-installer $TARGET" #xterm -e /bin/bash -c "pkexec /usr/sbin/nanodesk-installer $1 || echo 'pkexec auth failed' >> $ERRORFILE"
xterm -e /bin/bash -c "pkexec mc || echo 'pkexec auth failed' >> $ERRORFILE" xterm -e /bin/bash -c "pkexec mc || echo 'pkexec auth failed' >> $ERRORFILE"
#xterm -e /bin/bash -c "pkexec mc || echo 'pkexec auth failed' >> $ERRORFILE"
#xterm -e /bin/bash -c "pkexec 'false ' ; echo $? ; echo 'Please press enter to continue...' ; read" #xterm -e /bin/bash -c "pkexec 'false ' ; echo $? ; echo 'Please press enter to continue...' ; read"
} }
@ -213,7 +216,7 @@ do
echo CODE $RETURN echo CODE $RETURN
done done
exec-nanodesk-installer exec-nanodesk-installer $TARGET
if [ -f "$SUCCESSFILE" ] if [ -f "$SUCCESSFILE" ]
then then
@ -228,6 +231,9 @@ elif [ -f "$ERRORFILE" ]
then then
gxm-error gxm-error
exit 1 exit 1
else
echo "Unexpected Error! Exit here." | $GXMINFO -buttons Close -default Close
exit 1
fi fi