I've created a script called update.sh on my desktop with the following code:
# Define color variables
GREEN='\033[0;32m'
NC='\033[0m' # No Color (reset to default)
# Update system using pacman
echo -e "${GREEN}Running sudo pacman -Syu...${NC}"
sudo pacman -Syu
# Update system using yay
echo -e "${GREEN}Running yay -Syu...${NC}"
yay -Syu
# Update Flatpak apps
echo -e "${GREEN}Running flatpak update...${NC}"
flatpak update
When I open my terminal emulator (Konsole), and enter Desktop/updates.sh, it will run the script properly, however, if I double click the icon, it doesn't do anything.
I've set the script to open with Konsole (shown in the screenshot), but even still, it doesn't open.
When looking online, all I see is people saying I need to run chmod +x Desktop/updates.sh to make it executable. which I have already done.
Thanks in advance for any help. I am new to Arch Linux, so sorry if this is a silly question.