v1.6 Release Notes
馃敡 Major Bug Fixes
Fixed: .macbook_optimizer_state.conf Permission Denied Issues
- Resolved the persistent "Permission denied" error that users encountered with every optimization
- Complete rewrite of configuration file handling with robust error checking
- Backward compatibility maintained with existing installations
馃啎 New Features
Permission Fix Utility
- Added
fix_permissions.sh- Standalone utility to diagnose and fix permission issues - Automatic permission detection and repair
- Comprehensive diagnostic information for troubleshooting
Enhanced Error Handling
- Graceful fallbacks when config file is inaccessible
- Clear error messages with specific instructions for users
- Safe file operations with permission checking before read/write
馃殌 Improvements
Core System Enhancements
- Improved
initialize_config()function with comprehensive permission checking - New
safe_read_config()andwrite_to_config()** functions for secure file operations - Enhanced status tracking with better error recovery
- Safer reset functionality in menu system
User Experience
- Better feedback during script initialization
- Informative error messages instead of silent failures
- Automatic permission fixing when possible
- Manual fix instructions when automatic repair fails
馃攳 Technical Improvements
File Operation Safety
- All file reads now use permission checking
- Write operations validate accessibility before attempting
- Empty line handling in status parsing
- Error suppression for cleaner user experience
Menu System Updates
- Safe state reset with proper error handling
- Improved status display with fallback for inaccessible files
- Better handling of missing or corrupted config files
馃悰 Bug Fixes
- Fixed permission denied errors in config file operations
- Resolved issues with mixed privilege execution (sudo vs user)
- Fixed unsafe file operations during state reset
- Corrected missing error handling in status functions
- Fixed potential issues with file ownership conflicts
馃捇 Compatibility
- Full backward compatibility with existing installations
- Works with both Intel and Apple Silicon MacBooks
- Compatible with all macOS versions supported by previous releases
- Automatic migration of existing config files
馃摝 Installation & Upgrade
Fresh Installation
# Clone the repository
git clone https://github.com/koding88/MacBook-Optimization-Script.git
# Navigate to directory
cd MacBook-Optimization-Script
# Make script executable
chmod +x script.sh
# Run the script
./script.shUpgrading from Previous Versions
# Update your existing installation
git pull origin main
# If you encounter permission issues, run the fix utility
./fix_permissions.sh
# Then run the main script
./script.shFixing Existing Permission Issues
# Run the diagnostic and fix utility
./fix_permissions.sh
# Or manually fix if needed
rm ~/.macbook_optimizer_state.conf
chmod +x script.sh
./script.sh馃幆 What's Fixed
This release specifically addresses the GitHub issue where users reported:
"with every optimization part I get the following issue: .macbook_optimizer_state.conf: Permission denied"
This issue is now completely resolved with comprehensive permission handling and user-friendly error recovery.
馃攧 Migration Notes
- No manual migration required for most users
- Existing config files will be automatically handled
- If you experience issues, run
./fix_permissions.shfor automatic diagnosis and repair - All optimization history is preserved during upgrade
馃毃 Breaking Changes
None - This release maintains full backward compatibility.
Full Changelog: v1.5-intel...v1.6