kcrawford / dockutil

command line tool for managing dock items
http://patternbuffer.wordpress.com
Apache License 2.0
1.36k stars 131 forks source link

Version 3.0.2 fails with: com.apple.dock.plist does not seem to be a home directory or a dock plist #132

Closed Theile closed 2 years ago

Theile commented 2 years ago

Tried it on several different machines, but get the same error each time:

Error: /Users/st/Documents/Library/Preferences/com.apple.dock.plist does not seem to be a home directory or a dock plist

Theile commented 2 years ago

OK, this is my mistake. Script running as root, and even though I tried to run dockutil as the logged in user, the $USER and $HOME variables were still root…