I’m using Gnome DE with extension Arch Linux Updates Indicator. It works, but there is one problem. When I press the Update now button now and after the update is completed, in theory, when I press the enter button after all this, the terminal (kgx) should close. But instead of the terminal closing when the enter button is pressed, it does not close and gives the following message to the terminal window in bottom with blue background: Read only - Command exited. And further on pressing the enter button, the terminal does not close, I can close it only by clicking on the cross or by pressing ctrl+shift+w.
Content to check for package updates: /bin/sh -c "(/usr/bin/checkupdates; /usr/bin/yay -Qqu --color never | sed 's/Get .*//') | sort -u - t' '-k1,1"
Content to update packages: kgx -- sh -c "yay ; echo Done - Press enter to exit; read"
Even if I remove read in the content for update packages, this does not solve the problem.
What’s the purpose of checking whether there are updates available if your intention is to update your system? The update itself checks for updates anyway.
The only time one should check if there are updates available is when one might not want to update.
Usually, that’s the case when one is waiting for some specific package to be available for update before updating the entire system (e.g. not wanting to update the kernel if there is no NoVidea driver update available, as that will boot to black screen). That’s the only reasonable time one should check whether there are updates available.
If you’re going to update regardless, it’s pointless to check if there are updates available before updating. You’re just wasting mirror bandwidth (and your time).