Skip to content
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

Hardcoded path ~/Dropbox for some directories #19

Open
yuchdev opened this issue Dec 8, 2022 · 2 comments
Open

Hardcoded path ~/Dropbox for some directories #19

yuchdev opened this issue Dec 8, 2022 · 2 comments

Comments

@yuchdev
Copy link

yuchdev commented Dec 8, 2022

I don't have Dropbox and never did.
My backup directory is configured at startup:
export MACPREFS_BACKUP_DIR=/Users/username/.macprefs
However, some directories are being created in ~/Dropbox (the directory Dropbox is being created):

app_store_preferences
dotfiles
preferences
shared_file_lists
ssh
StartupItems
system_preferences

I manually moved them into the directory I configured, but now I'm concerned, if the restore function also has hardcoded paths.

@tillydray
Copy link

That stinks! If I had to guess I'd say your MACPREFS_BACKUP_DIR got unset somehow, then MacPrefs ran. According to readme.md#config Dropbox is the default location for the backup_dir, so when MACPREFS_BACKUP_DIR was unset it used Dropbox.

I'm not sure how frequently MacPrefs runs, and I'm not sure how your MACPREFS_BACKUP_DIR got unset, but my theory is the only one I have right now.

@yuchdev
Copy link
Author

yuchdev commented Jan 22, 2023

I don't know how it may become unset during the script execution. export MACPREFS_BACKUP_DIR is being set among other variables in .zshrc. My guess is hardcoded path somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants