kcrawford / dockutil

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

Launch under sudo issue #124

Closed ferben closed 2 years ago

ferben commented 2 years ago

In 2.0 when I launch dockutil under sudo (part of installer [pkg] solution), change my (logged user) Dock with following command: sudo ./dockutil.py --add /Applications/Test.app --section others --position first

In 3.0 I get following error message: sudo ./dockutil --add /Applications/Test.app --section others --position first Error: /var/root/Library/Preferences/com.apple.dock.plist does not seem to be a home directory or a dock plist

Workaround: Wrote "$HOME" variable at the end of commandline. sudo ./dockutil --add /Applications/Test.app --section others --position first "$HOME"

It is change in default behavior. Please let me know if it is permanent change or you are able to fix it.

Thank you

kcrawford commented 2 years ago

Thanks for reporting. This will be fixed in 3.0.1.

ferben commented 2 years ago

Thank you.