Icon for sidebar in finder
Dropbox and iCloud have dedicated icons for when they are placed in the finder sidebar. When the one drive folder is placed there, though it has a custom folder icon inside the finder window, it reverts back to a standard folder icon. I suggest that you find a way to make this be the actual one drive icon.
Jeremy White commented
This does work in 10.14 but only for the personal OnDrive account. When using Sharepoint within an organization, two separate root folders are created (which is asinine). The personal folder receives the sidebar icon while the Sharepoint version gets the default folder. Of course, the root folder of the Sharepoint account has a custom icon but isn't represented in the sidebar.
It needs a distinctive icon for the Finder sidebar. Dropbox is seen instantly while Onedrive is sometimes hard to find.
harry dender commented
For Mojave you need to relaunch Finder. Right click on Finder in the dock and select re-launch.
When you restart MacOS the folder will revert to a normal folder until you restart Finder again.
Of course you need the extension to be enabled in System Preferences.
I tried to disable and enable OneDrive Finder extension - no result (OS Mojave)
"System Preferences then Extensions and enable the OneDrive Finder extension" Confirmed to work and permit OneDrive custom icon for Favourites sidebar on Mac OS High Sierra 10.13.6.
Thanks Gary Davis.
Gary Davis commented
Hmm, might have found the answer. Go to System Preferences then Extensions and enable the OneDrive Finder extension. You might need to remove the existing Sidebar items and then re-add them. Once I turned on the extension and added the OneDrive folders to the Sidebar, the icon did *not* revert to a regular folder icon. Also, com.microsoft.oneDrive-mac.FinderSync was added to user/Library/Containers.
Gary Davis commented
Well. . . it does work and it doesn't work. I have an iMac and a MB Pro and both have the same two OneDrive accounts set up on them. One is a personal account while the other is business. On the iMac, the icon in the Sidebar reverts to a regular folder icon while on the MB Pro, the Sidebar icon is the OneDrive icon. Weird. I'm not sure what's causing the difference.
Federico, how does it work already?
Federico Jaramillo Martínez commented
This works already.
Quentin Johnston commented
Lets also permit characters like ? : in the file names please