Technical > Development and Scripting
Running .network-autostart script not applying changes
(1/1)
Cytochromec:
I have added a line to our update.sh script to change some keyboard shortcuts.
If I open a terminal and run
--- Code: ---sh .network-autostart
--- End code ---
the changes are made. However on boot/network-disconnect-reconnect the changes don't get made.
Here are the two lines:
--- Code: ---sudo -u user gsettings set org.gnome.desktop.wm.keybindings show-desktop "['']"
gsettings set org.gnome.desktop.wm.keybindings show-desktop "['']" #this is optional but I included it for testing purposes
--- End code ---
Other parts of the script work fine on boot. I am thinking it has something to do with how .network-autostart is called. Any thoughts?
jnetman1:
Probably has something to do with the script running as root and a missing environment. Instead of sudo, try:
su -c "gsettings set org.gnome.desktop.wm.keybindings show-desktop \"['']\"" - user
Should work better.
Navigation
[0] Message Index
Go to full version