Skip to content

Claude/review ubuntu port files 01 r tbe z nrbum4y k mj42m ncwa - #4

Merged
therealtinhtute merged 2 commits into
mainfrom
claude/review-ubuntu-port-files-01RTbeZNrbum4yKMj42mNCWA
Nov 19, 2025
Merged

therealtinhtute merged 2 commits into
mainfrom
claude/review-ubuntu-port-files-01RTbeZNrbum4yKMj42mNCWA

Conversation

@therealtinhtute

Copy link
Copy Markdown
Contributor

No description provided.

Major changes to lib/common.sh:
- Fixed stat command: -f%z → -c%s (Linux format)
- Updated critical system directories to include /lib, /lib64, /boot, /sys, /proc
- Replaced detect_architecture(): Now detects x86_64, ARM64, ARMv7, i686
- Added detect_ubuntu_version(): Uses lsb_release
- Added get_os_info(): Reads /etc/os-release
- Completely rewrote find_app_files() and find_app_system_files():
  - Removed 313 lines of macOS ~/Library/* paths
  - Now uses XDG directories (~/.config, ~/.local/share, ~/.cache, ~/.local/state)
  - Added package-type awareness (snap: ~/snap, flatpak: ~/.var/app)
  - System files: /etc, /usr/share, /var/lib, /var/cache, /var/log
  - Added systemd service detection
  - Functions now take app_name + pkg_type instead of bundle_id

Task 6 completed - common.sh fully ported to Ubuntu
Changes to main fub script:
- Header: "macOS maintenance tool" → "Ubuntu maintenance tool"
- Tagline: "clean your Mac" → "clean your Ubuntu system"
- Fixed stat command: -f%m → -c%Y (Linux format)
- Menu options: "Clean Mac" → "Clean System", "Optimize Mac" → "Optimize System"

Task 7 completed - All main scripts now Ubuntu-aware
@therealtinhtute
therealtinhtute merged commit 32c8163 into main Nov 19, 2025
1 check failed
@therealtinhtute
therealtinhtute deleted the claude/review-ubuntu-port-files-01RTbeZNrbum4yKMj42mNCWA branch November 19, 2025 23:50
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

Successfully merging this pull request may close these issues.

2 participants