Odd enough, and dont know if this was successfull bcause of a 'bug'.
But with the previous scripts i had an autostyle gnome3 section, and some parts were just called as you first had, but for some reason it got applied. However havent used since Gnome 3.0.x...
Anyway, the script 'was ment' to be called as 'normal' (current) user, not as root.
# | Download the extension
git clone https://github.com/simon04/gnome-shell-extension-weather.git
# | change to folder, and make installation
sudo make install
# | shell weather extension
seaheader "Autostyle: Weather extension"
gsettings set org.gnome.shell.extensions.weather unit celsius
gsettings set org.gnome.shell.extensions.weather show-comment-in-panel false
gsettings set org.gnome.shell.extensions.weather position-in-panel center
gsettings set org.gnome.shell.extensions.weather city Bülach
Originally Posted by Glennzo
Hello Dave. The script requires sudo password since I'm doing "yum install".. So if I use your example code above those 2 commands will be executed as "glenn" ??
If you're executing the sudo yum install, just the next line will (should) be executed as 'current' user again.
Only if you have reloaded the script as root, or having the code block to be run as root might cause an issue you're having. Or if you wrote an 'improper' one liner. By improper i mean, more than required is run as root.