FYI, changing the defaults using these commands on 10.13 High Sierra completely borked my system. It took me 40 hours of troubleshooting to find the culprit. Every time the Finder or any application tried to load a window with the file system sidebar (Favorites, mounted volumes etc), the app would hang, beachball, or crash. The culprit is modifying LSSharedFileList defaults. For some reason, this was only an issue once I had logged into my iCloud account for that particular user. If you're on High Sierra, DON'T run these commands. If you have, you can fix the issue by running:
defaults delete <com.vendor.app>.LSSharedFileList
(replace <com.vendor.app> with your app)