Prevent macOS system preference resets and keyboard shortcut issues caused by dangerous Mackup symlinks
Mackup is an excellent tool for backing up application settings, but it can create dangerous symlinks that cause serious macOS issues:
- Keyboard shortcuts reset after every restart (Reddit Discussion)
- System preferences don't persist
- Spotlight search breaks
- Dock configuration resets
- Mission Control spaces disappear
Mackup symlinks critical macOS system files like:
com.apple.symbolichotkeys.plist
(keyboard shortcuts)com.apple.dock.plist
(Dock settings)com.apple.Spotlight.plist
(Spotlight preferences)- And 400+ other system files
macOS expects these to be regular files, not symlinks.
This repository provides a comprehensive fix that:
- Removes dangerous symlinks safely
- Prevents future dangerous symlinks with proper configuration
- Monitors your setup for safety
- Keeps all the benefits of Mackup for safe files
# Download and run the fix
curl -fsSL https://raw.githubusercontent.com/vuvuvu/mackup-check/main/install.sh | bash
Or manual installation:
# Clone the repository
git clone https://github.com/vuvuvu/mackup-check.git
cd mackup-check
# Run the fix
./fix-mackup.sh
# Check your setup
./check-mackup-safety.sh
fix-mackup.sh
- Automated fix script that safely resolves dangerous symlinkscheck-mackup-safety.sh
- Safety monitoring scriptsafe-mackup.cfg
- Comprehensive configuration with 400+ exclusionsinstall.sh
- One-command installer- Documentation - Detailed explanation and troubleshooting
The fix script scans for problematic Apple system preference symlinks that cause issues.
- Backs up symlink targets
- Removes dangerous symlinks
- Creates regular files with same content
- Preserves all your settings
Adds comprehensive .mackup.cfg
that excludes:
- All Apple system preferences
- Keyboard shortcut files
- Spotlight databases
- Security settings
- And 400+ other dangerous files
Safety checker script detects:
- New dangerous symlinks
- Configuration drift
- Backup health status
- Third-party app preferences (VSCode, iTerm, etc.)
- Development tool configs (Git, SSH, shell configs)
- User dotfiles (
.zshrc
,.gitconfig
,.vimrc
) - Terminal applications
- Text editor settings
- Keyboard shortcuts (
com.apple.symbolichotkeys.plist
) - System preferences (
com.apple.systempreferences.plist
) - Dock settings (
com.apple.dock.plist
) - Spotlight preferences (
com.apple.Spotlight.plist
) - Mission Control (
com.apple.spaces.plist
) - All other Apple system files
# Quick check
./check-mackup-safety.sh
# Or if you installed the alias
mackup-check
# Backup (now safe)
mackup backup
# Restore on new machine (now safe)
mackup restore
# List supported apps
mackup list
π Checking for dangerous symlinks...
β
No dangerous Apple system symlinks found
π Checking specific problematic files...
β
SAFE: Library/Preferences/com.apple.symbolichotkeys.plist (regular file)
β
SAFE: Library/Preferences/com.apple.dock.plist (regular file)
β
SAFE: Library/Preferences/com.apple.Spotlight.plist (regular file)
π Mackup backup directory: 172 files backed up
β
Backup appears recent (files modified within last day)
π ALL CLEAR! Your Mackup setup is safe.
If you prefer to configure manually, copy the safe-mackup.cfg
to ~/.mackup.cfg
:
cp safe-mackup.cfg ~/.mackup.cfg
Solution:
# Check if symlink still exists
ls -la ~/Library/Preferences/com.apple.symbolichotkeys.plist
# If it's a symlink (shows ->), run the fix again
./fix-mackup.sh
Solution:
# Restart the preferences daemon
killall cfprefsd
# Run safety check
./check-mackup-safety.sh
Solution: This is normal and safe. The fix converts symlinks to regular files, so Mackup will ask about conflicts. Choose "No" to keep the regular files.
Issue | Before Fix | After Fix |
---|---|---|
Keyboard shortcuts | Reset on restart β | Persist reliably β |
System preferences | Don't save β | Save normally β |
Spotlight search | Breaks randomly β | Works consistently β |
Dock configuration | Resets unexpectedly β | Stays configured β |
App preferences | Backed up β | Still backed up β |
Dotfiles sync | Works β | Still works β |
Found an issue or have a suggestion? Please:
- Check existing issues first
- Open a new issue with details
- Submit a pull request if you have a fix
- Additional dangerous files to exclude
- Compatibility with newer macOS versions
- Improved detection logic
- Better documentation
- Backup first: Always backup your system before running fixes
- Test thoroughly: Check that your shortcuts work after applying
- Run regularly: Use the safety checker weekly
- macOS updates: Re-run after major macOS updates
This fix is based on extensive research including:
- Reddit: Spotlight keyboard shortcuts reset
- Mackup GitHub issues
- Apple Developer Documentation
- Community reports and testing
- Mackup - The original backup tool
- Dotfiles managers - Alternative approaches
- macOS defaults - System preference management
MIT License - see LICENSE file for details.
- Laurent Raufaste for creating Mackup
- Reddit community for identifying the issues
- macOS power users for testing and feedback
If this fixed your Mackup issues, please:
- β Star this repository
- π¦ Share on social media
- π Write about your experience
- π€ Contribute improvements
Made with β€οΈ by developers who got tired of resetting keyboard shortcuts every day.