ds-repos / ds-base

GNUstep build wrapper for FreeBSD
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

How to use `defaults write` for a dict? #2

Open dszidi opened 9 months ago

dszidi commented 9 months ago

For example when I want to use defaults write command to add the <imagepath> value in GWorkspace.plist, I need to reachdesktopinfo/dict/imagepath. I have run into online resources telling me to use -dict or -dict-add but that only exposes the other problem with defaults write in that it will happily write anything to the xml. In the case of <desktopinfo> it wipes out the entire dictionary.

This forces us to currently have minimal plist files in GNUstep/Defaults in addition to our preferred method of using defaults commands in the /opt/bin/dubstep-defaults script

dszidi commented 8 months ago

Just dropping a hint for myself. We might be able to do this using plutil