Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Add the ability to change the screenshot location for a given user #83

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions manifests/change_screenshot_location.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Public: Change the location that screenshots are stored
class osx::change_screenshot_location (

$value = '',

) {
boxen::osx_defaults { 'Change the location that screenshots are stored in':
user => $::boxen_user,
key => 'location',
domain => 'com.apple.screencapture',
value => $value,
notify => Exec['killall SystemUIServer'];
}

exec { 'killall SystemUIServer':
command => '/usr/bin/killall SystemUIServer',
}
}