Add automatic application configuration for tmpfs caches

- Auto-detect and configure Firefox cache location in prefs.js
- Auto-create optimized .desktop launchers for Chrome/Chromium/Brave
- Auto-configure NPM and Pip cache directories
- Auto-link KDE/Plasma thumbnail cache to tmpfs
- Add configure_applications_for_tmpfs() function with smart detection
- Backup original configs before modification
- Set proper ownership and permissions for all cache directories
- Replace manual setup instructions with automatic configuration
- Show progress of configured applications with count
- Update next steps to reflect automatic setup

Benefits:
- Zero post-setup manual configuration needed
- Immediate performance improvement on app restart
- Safer with automatic backups and proper permissions
- Better user experience with clear progress reporting
This commit is contained in:
mindesbunister
2025-10-06 09:25:01 +02:00
parent 548dc1d0d3
commit 8e5e370e09
2 changed files with 203 additions and 35 deletions

View File

@@ -1,5 +1,38 @@
# Changelog
## [2025-10-06] - Automatic Application Configuration
### Added
- **Automatic browser cache configuration**: Script now automatically detects and configures browsers
- Firefox: Automatically updates prefs.js with tmpfs cache location
- Chrome/Chromium: Creates optimized .desktop launchers with --disk-cache-dir flag
- Brave: Creates optimized .desktop launcher with tmpfs cache
- Automatic backup of original configurations before modifications
- **Automatic development tools configuration**:
- NPM: Automatically configures cache directory via npm config
- Pip: Creates pip.conf with tmpfs cache location
- Proper user/group ownership for all configured directories
- **Automatic desktop environment integration**:
- KDE/Plasma: Automatically links thumbnail cache to tmpfs
- Proper symlink management with backup of existing directories
- **Smart detection**: Only configures applications that are actually installed
- **Progress reporting**: Shows which applications were successfully configured
- **User guidance**: Clear instructions for restarting configured applications
### Changed
- Replaced manual configuration instructions with automatic setup
- Improved user experience by eliminating post-setup manual steps
- Updated "Next Steps" to reflect automatic configuration
### Benefits
- **Zero manual configuration** needed after running the optimizer
- **Immediate performance boost** upon restarting configured applications
- **Safer implementation** with automatic backups and proper permissions
- **User-friendly** progress reporting during configuration
## [2025-09-23] - Overlay Filesystem Removal
### Removed