Symbolic link to documents and desktop folder gets reset after reboot on macOS 10.15 Catalina

I use OneDrive for Business to sync my files. To achieve somewhat similar to Windows' folder redirection I used to delete the original "documents" and "desktop" folders and create symbolic links to their equivalent in my OneDrive folder.

Example: sudo ln -s /Users/xyz/OneDrive/Documents /Users/xyz/Documents

With Catalina, these two symlinks are getting lost after each reboot.

What do I have to change or make different to get this to work again?

MacBook Pro with Touch Bar

Posted on Oct 9, 2019 10:30 PM

Reply

Similar questions

17 replies

Oct 14, 2019 3:58 AM in response to CG5050

I have found that in Privacy you can add applications to files and folders, however it appears some applications just can't be added Eclipse IDE for one in the end I had to give the application full drive access to get it to work.

I remember back when Windows Server 2003 came out there were similar problems on corporate networks where Office would not install correctly on users desktops without them being given admin rights on their local desktop. Ill thought out changes to security that look good in design tend to break the overall security of systems by making things so complicated security holes appear elsewhere in the system because users still need or want to perform those functions.

Oct 28, 2019 11:48 PM in response to BWT615

Sorry didn't work. Maybe it's because I'm not using Pathfinder and have no plans to do so.

The "locked" ("gesperrt" in German) option is greyed out in Finder (see below).

I tried to lock it with Forklift where that "locked" feature is available, but when setting the "locked" option, it does lock the folder that the symlink is referring to, letting me not saving anything to that folder.

Also interesting: I'm unable to add the "Desktop" symlink to the sidebar while the "Documents" symlink can.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Symbolic link to documents and desktop folder gets reset after reboot on macOS 10.15 Catalina

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.