https://bugs.kde.org/show_bug.cgi?id=343661
--- Comment #49 from Walter Nicholls <wal...@nic.gen.nz> --- Sage advice, Thomas. This is odd. Did not survive a reboot. It runs the script but doesn't set the setting. This might be getting a bit off topic, but looks like it is time to further debug kde. I hope this formats ok and makes sense. kwin.sh contains (extra logging to prove it ran and did its job, or not, as is the case) #!/bin/sh echo kwin.sh was run! >>/var/log/kde_debug_temp.log echo In script Before KWIN_EXPLICIT_SYNC is: $KWIN_EXPLICIT_SYNC >>/var/log/kde_debug_temp.log export KWIN_EXPLICIT_SYNC=0 echo In script After KWIN_EXPLICIT_SYNC is: $KWIN_EXPLICIT_SYNC >>/var/log/kde_debug_temp.log If, from bash prompt, I run /home/walter/.config/plasma-workspace/env/kwin.sh then as expected nothing is set; if I source /home/walter/.config/plasma-workspace/env/kwin.sh then KWIN_EXPLICIT_SYNC is set afterwars as expected. If I create newtest.sh containing only the line " . kwin.sh " then KWIN_EXPLICIT_SYNC is set as expected (well ,for the duration of the script anyway since it isn't itself sourced). However if I modify startkde so that it contains logging echo In startkde Before KWIN_EXPLICIT_SYNC is: $KWIN_EXPLICIT_SYNC >>/var/log/kde_debug_temp.log for prefix in `echo $scriptpath`; do for file in "$prefix"/env/*.sh; do (test -r "$file" && . "$file") || : done done echo In startkde After KWIN_EXPLICIT_SYNC is: $KWIN_EXPLICIT_SYNC >>/var/log/kde_debug_temp.log Now reboot and look at the log file , it shows: In startkde Before KWIN_EXPLICIT_SYNC is: In script Before KWIN_EXPLICIT_SYNC is: In script After KWIN_EXPLICIT_SYNC is: 0 In startkde After KWIN_EXPLICIT_SYNC is: So my script is DEFINITELY executing, it is DEFINITELY setting the env var, but that extra indirection in startkde - (test -r "$file" && . "$file") - is enough to stop the setting from taking. So how the***^&#%#$($#%! was this ever supposed to work??? [ This is exactly your advice from https://bugs.kde.org/show_bug.cgi?id=348753 - has something changed in Ubuntu 15.10? ] -- You are receiving this mail because: You are watching all bug changes.