Skip to content
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

Add "User Templates" option #4

Closed
macmule opened this issue Oct 1, 2012 · 6 comments
Closed

Add "User Templates" option #4

macmule opened this issue Oct 1, 2012 · 6 comments

Comments

@macmule
Copy link

macmule commented Oct 1, 2012

Hi there,

I'd like to see an option to create com.apple.dock.plist files in the user templates folder.

That way we could run 1 line that would update all current users docks & all templates docks, so new users get the changes.

Current workaround is to deploy a blank dock & then run each command twice:

The home templates are updated, but not all homes.. so presumably i need to run two lines of script everytime i wish to add an item:

  1. For User Templates:
    sudo /usr/bin/dockutil --add '/path to some app' --homeloc '/System/Library/User Template/'
  2. For All Existing Users:
    sudo /usr/bin/dockutil --add '/path to some app' --allhomes

Also, as (in @ least 10.8) the templates folders are empty.. create a blank plist OR copy the template from: /System/Library/CoreServices/Dock.app/Contents/Resources/.lproj/default.plist.

Thanks.

@elvisizer
Copy link

+1 on this. I'd love to see this implemented as well.

@diwanicki
Copy link

reviving this, if I should start a new issue, let me know.

In dockutil 2.0, can you stack commands?

i.e.: is this legal -

dockutil --add /Applications/Firefox.app --after Safari --allhomes '/System/Library/User Template/English.lproj'

@jelockwood
Copy link

@diwanicki @elvisizer @macmule @kcrawford
Add my vote for this feature. In fact I came here specifically looking for a solution to manage the dock plist for the User Template.

Note that Catalina now users /Library/User Template/ as the location for the User Template folder as /System/Library/User Template is protected by SIP.

I did a sudo defaults read /Library/User Template/English.lproj/Library/Preferences/com.apple.dock.plist (and ones in other languages) and none of them seem to contain entries for dock icons like they used to in Mojave. Even after logging in as a user thereby triggering the creation of a home directory a users own ~/Library/Preferences/com.apple.dock.plist does not list such entries either.

Are they stored elsewhere now?

@jelockwood
Copy link

For what it's worth, in Catalina it does not look like any of the com.apple.dock.plist files in /Library/User Template/ actually contain any dock entries.

I can only presume that the content is being generated dynamically when a new user account is created along with its home directory.

I would still like a solution to being able to customize the dock so it applies to new user accounts. Unless someone can identify from where the information is being generated then the only solution I can see would be as follows.

  1. Install dockutil
  2. Install outset
  3. Configure outset to run a login-once script to clean up a users dock, as this would only be run once it would remove (in my case) the broken icons but unlike settings via MDM would allow a user to later install the missing apps and re-add them to the dock

@kcrawford
Copy link
Owner

kcrawford commented Oct 29, 2019 via email

@macmule
Copy link
Author

macmule commented Mar 31, 2020

Wow.. old issue, but do the similar.. closing off thanks

@macmule macmule closed this as completed Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants