I created a simple script to update Ddog.
It works. But you have to either run it from a terminal or "Right click & run in terminal" to see the output in foreground.
How do I make it so that my sister can just click it and see it running (in foreground).
I think she'll forget if I tell her to 'run from terminal'.
Code: Select all
#!/bin/bash
# Filename/file location - /mnt/sda1/MyData/customise/Update-OS
echo
echo
echo
read -sp "Updating OS. Press ENTER to continue or Ctrl-C to Cancel. . ."
echo
echo
apt update
#apt upgrade -y #Comment out during test
echo
echo
read -sp "Update completed. Press ENTER to continue."
echo
Code: Select all
[Desktop Entry]
Version=1.0
Type=Application
Name=Update OS
Comment=
#Exec=/mnt/sda1/MyData/customise/Update-OS #or below
Exec=xterm -e "bash -c '/mnt/sda1/MyData/customise/Update-OS'"
Icon=/root/icons/terminal.png
Path=
Terminal=true
StartupNotify=false
Categories=Application;
Sort of like what this guy is trying to do.
And the replies didn't address the question (?).
https://askubuntu.com/questions/138908/ ... in-windows
.
.
If it's too hard, I'll probably just try to teach her right-click & 'run in terminal'