Puppet Class: osx::dock::clear_dock

Defined in:
manifests/dock/clear_dock.pp

Overview

Public: Clears the dock of ‘pinned’ application icons.



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'manifests/dock/clear_dock.pp', line 2

class osx::dock::clear_dock {
  include osx::dock

  boxen::osx_defaults { 'Prevent launchpad from reappearing':
    user   => $::boxen_user,
    domain => 'com.apple.dock',
    key    => 'checked-for-launchpad',
    value  => true,
    notify => Exec['killall Dock'];
  }

  boxen::osx_defaults { 'Remove all the pinned icons':
    user   => $::boxen_user,
    domain => 'com.apple.dock',
    key    => 'persistent-apps',
    value  => '()',
    notify => Exec['killall Dock'];
  }
}