-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyError: 'persistent-apps' error on 10.15.4 #95
Comments
I am seeing the same behavior with 10.15.5. |
Are you running this in a script via Jamf? Seems Catalina is not letting the root user modify the currently logged in user's Dock. I've changed my script from;
To;
Seems to work like that. |
I'm also seeing this on Macos 12 developer beta 1.
|
It seems that if I run |
Not sure, but you might be experiencing the issue I filed as #109 , where the com.apple.dock.plist isn't setup yet. Dockutil expects the file to exist, and can't write elements to the And even if you make those manually, the Dock will completely reset itself back to a default state if you don't also have the You can get around this by running this series of commands to initialize the version as
|
To anyone else who gets the "[Add|Remove] failed" error when running dockutil on a fresh user profile.... THIS IS THE SOLUTION. (Dockutil should really have some internal check to see if this is necessary and perform it automatically.) Oh well. @aaronclarke your solution did not work for me, but I did try it. |
I am not able to add or remove anything with the latest release running on 10.15.4. I am getting the below error for each command.
dockutil --add /Applications/Microsoft\ Word.app
Traceback (most recent call last):
File "/usr/local/bin/dockutil", line 689, in
main()
File "/usr/local/bin/dockutil", line 388, in main
if addItem(pl, real_add_path, replace_label, position, before_item, after_item, section, displayas, showas, arrangement, tile_type, label_name):
File "/usr/local/bin/dockutil", line 565, in addItem
for existing_dock_item in (pl[section]):
KeyError: 'persistent-apps'
The text was updated successfully, but these errors were encountered: