mackup icon indicating copy to clipboard operation
mackup copied to clipboard

macOS Terminal overwrites symlink

Open ywwn opened this issue 4 years ago • 8 comments

When restart the macOS terminal, it will overwrite com.apple.Terminal.plist.

May perform like https://github.com/lra/mackup/issues/382.

macOS 10.15.4(19E287)

ywwn avatar Apr 21 '20 07:04 ywwn

And now the other plists in ~/Library/Preferences/ are also overwritten too.

I think use symlink may not a good choice for these setups, why don't try to use hard link instead? This allows you to stay in sync without modifying the original file.

ywwn avatar Apr 21 '20 09:04 ywwn

When sync terminal (macOS Catalina 10.15.4), it losts my configuration. Without time machine i never able to get back configuration.

@YohaneWW Is my issue related to this issue?

dalisoft avatar May 18 '20 13:05 dalisoft

Yes, it’s the same issue. @dalisoft

ywwn avatar May 18 '20 17:05 ywwn

Tested on macOS 10.15.5 and the symlink for com.apple.Terminal.plist stay intact. Are you still observing the overwriting behaviour?

tillhainbach avatar Jun 30 '20 11:06 tillhainbach

Same issue.

realav avatar Sep 01 '20 07:09 realav

I have the same issue. At first I thought that using the file_system engine was the culprit. But it seems that the issue is not related to the configuration of mackup.

marchottinger avatar Mar 24 '22 14:03 marchottinger

I've had the same issue in some apps(bettertouchtool, istats menu and so on) for a while. It seems that these apps will delete and write back the config file before exiting. That break the mackup exactly. I have no idea to fix it. Maybe symlinking the whole folder is the only solution.

MisLink avatar Mar 25 '22 09:03 MisLink

On macOS 12.1 (21C52) and 12.3 (21E230) at least it seems that every plist file in ~/Library/Preferences that was symlinked is replaced with a regular file when User Defaults for an app are changed.

It doesn’t seem like these files should be symlinked anymore by Mackup.

dnicolson avatar Mar 26 '22 14:03 dnicolson