aboutsummaryrefslogtreecommitdiffstats
path: root/coin
diff options
context:
space:
mode:
authorTony Sarajärvi <tony.sarajarvi@qt.io>2017-05-30 12:35:19 +0300
committerTony Sarajärvi <tony.sarajarvi@qt.io>2017-06-05 03:32:31 +0000
commitba1a8d62164df4b3e4c5e18f3356fd246ab00334 (patch)
tree16cf769c5f78948a896f2ec562aac617131145aa /coin
parent5be9b3d2be9d5e0fff1e94fd0c8d5fd52886d30a (diff)
Provision macOS disable screensaver in current session
Task-number: QTQAINFRA-1244 Change-Id: I3a27d8cdee8cd7b22d86116d58009e952ab536ea Reviewed-by: Aapo Keskimolo <aapo.keskimolo@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'coin')
-rwxr-xr-xcoin/provisioning/qtci-macos-10.12-x86_64/005-systemsetup.sh4
-rwxr-xr-xcoin/provisioning/qtci-osx-10.11-x86_64/005-systemsetup.sh4
2 files changed, 8 insertions, 0 deletions
diff --git a/coin/provisioning/qtci-macos-10.12-x86_64/005-systemsetup.sh b/coin/provisioning/qtci-macos-10.12-x86_64/005-systemsetup.sh
index 4577709f..5819e9de 100755
--- a/coin/provisioning/qtci-macos-10.12-x86_64/005-systemsetup.sh
+++ b/coin/provisioning/qtci-macos-10.12-x86_64/005-systemsetup.sh
@@ -51,6 +51,10 @@ ExceptionDisableScreensaverPassword=105
try
(
echo "Disable Screensaver"
+ # For current session
+ defaults -currentHost write com.apple.screensaver idleTime 0 || throw $ExceptionDisableScreensaver
+
+ # For session after a reboot
mkdir -p "$HOME/Library/LaunchAgents" || throw $ExceptionDisableScreensaver
(
cat >"$HOME/Library/LaunchAgents/no-screensaver.plist" <<EOT
diff --git a/coin/provisioning/qtci-osx-10.11-x86_64/005-systemsetup.sh b/coin/provisioning/qtci-osx-10.11-x86_64/005-systemsetup.sh
index 920a2540..4a07bbbe 100755
--- a/coin/provisioning/qtci-osx-10.11-x86_64/005-systemsetup.sh
+++ b/coin/provisioning/qtci-osx-10.11-x86_64/005-systemsetup.sh
@@ -51,6 +51,10 @@ ExceptionDisableScreensaverPassword=105
try
(
echo "Disable Screensaver"
+ # For current session
+ defaults -currentHost write com.apple.screensaver idleTime 0 || throw $ExceptionDisableScreensaver
+
+ # For session after a reboot
mkdir -p "$HOME/Library/LaunchAgents" || throw $ExceptionDisableScreensaver
(
cat >"$HOME/Library/LaunchAgents/no-screensaver.plist" <<EOT