New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symlinked preferences (.plist) is reset automatically #1419
Comments
MonitorControl is managing userdefaults via the normal system calls only so I am not sure what to do with this, but will leave it open, maybe somebody has an idea. :) |
@wohfab Found this thread via Google. This doesn't seem to have anything to do with MonitorControl or the apps themselves, but rather how macOS Sonoma (and perhaps even latest Ventura) handles symlinks for plists and the like (broken). Many apps via Mackup are currently experiencing major issues. See lra/mackup#1924 |
Oh, this is really good to know! Thanks for that link, @olssonm! I guess it's time to pause mackup for a while and see how fast this can be solved. |
Before opening the issue, have you...?
Describe the bug
I am using
mackup
(https://github.com/lra/mackup) to backup my.dotfiles
including preferences and settings of installed apps. The program works the way, that it duplicates the original preference files from the~/Library/
directories to a specified directory and then create a symlink to this file back into the directory. For MonitorControl it takes these steps:~/Library/Preferences/me.guillaumeb.MonitorControl.plist
into~/.dotfiles
~/Library/Preferences/me.guillaumeb.MonitorControl.plist
~/.dotfiles/me.guillaumeb.MonitorControl.plist
back to~/Library/Preferences/me.guillaumeb.MonitorControl.plist
MonitorControl however deletes this symlink and recreates the preferences automatically with the same filename but with the symlink stripped from it. This way
mackup
throws an error and-more important-does not backup the preferences for MonitorControl.Steps to reproduce
mackup
viabrew install mackup
monitorcontrol
(following the docs) at~/.mackup/monitorcontrol.cfg
withmackup backup
Expected behavior
.plist
file without recreating it every time.plist
file, keep symlink status intactAnything else?
I know, this is not per se a bug with MonitorControl; more an unexpected behaviour with the
.plist
file. If this is better suited as a discussion post, please feel free to move it over. Thanks a lot for your consideration!Environment Information (please complete the following information)
The text was updated successfully, but these errors were encountered: