How relhirs/wallget works
Purpose and Entry Point
WallGet is a standalone macOS command-line utility for managing Apple live-wallpaper video assets: discovering locally installed assets, downloading missing ones from Apple, and deleting selected files. The sole executable and application boundary is wallget.py.
Runtime and Operating-System Integration
The script runs under Python 3 on macOS Sonoma or later. It detects which Apple wallpaper storage model is active:
• Per-user Sonoma-era storage under ~/Library/Application Support/com.apple.wallpaper/aerials
• Legacy system-wide storage under /Library/Application Support/com.apple.idleassetsd
Legacy operations require administrator execution because they modify a protected system directory. The implementation is contained in wallget.py.
Catalog Discovery and Asset State
wallget.py enumerates Apple’s wallpaper catalog, organizes assets into categories, and compares each catalog entry with the applicable local storage directory. Local download status is determined from file presence and expected manifest size, allowing incomplete files to be treated as missing.
Interactive Selection Flow
The CLI presents category counts, then assets for the chosen category or full catalog. Users select individual assets, comma-separated groups, ranges, or all entries, then choose download or deletion. This selection layer constrains later filesystem and network work to explicitly selected targets. Entry-point and UI flow reside in wallget.py.
Download Pipeline
For download actions, wallget.py calculates the required transfer size, verifies free disk capacity, obtains confirmation, and streams only missing or incomplete assets over HTTPS from Apple’s CDN. Correctly sized existing files are skipped, avoiding redundant transfers.
Deletion and Daemon Refresh
Deletion is limited to selected local asset files. In legacy mode, after file mutations, wallget.py can stop the macOS idleassetsd daemon so Wallpaper settings promptly observe the changed asset inventory; otherwise the operating system refreshes state after reboot.
External Boundaries
Primary external dependencies are Apple’s wallpaper catalog/CDN over HTTPS, the local macOS wallpaper asset directories, filesystem free-space and file-size metadata, and—in legacy mode—the idleassetsd system daemon. There is no separate service, package structure, or persistent application database beyond the wallpaper files themselves.
Main entry points: wallget.py Download pipeline
Components 14
WallGet CLI
Single-process Python command-line application.
- wallget.py · Standalone executable and application boundary.
wallget.py - Catalog discovery · Organizes Apple wallpaper assets into categories.
wallget.py - Storage mode detection · Selects Sonoma per-user or legacy system storage.
wallget.py - Asset state check · Uses presence and expected size to identify missing or incomplete assets.
wallget.py - Interactive selection · Accepts individual, grouped, ranged, or all catalog selections.
wallget.py - Action dispatcher · Routes selected assets to download or deletion.
wallget.py - Download pipeline · Checks capacity and confirmation before streaming only needed assets.
wallget.py - Selected-file deletion · Removes only selected local asset files.
wallget.py
macOS Integration
- Sonoma user asset store · ~/Library/Application Support/com.apple.wallpaper/aerials
- Legacy system asset store · /Library/Application Support/com.apple.idleassetsd; requires administrator access.
- Filesystem metadata · Provides file sizes and free-space capacity.
- idleassetsd daemon · Can be stopped after legacy mutations to refresh Wallpaper inventory.
Apple Network
- Apple wallpaper catalog
- Apple CDN
Connections 19
- wallget.py → Catalog discovery: enumerates
- wallget.py → Storage mode detection: detects
- Catalog discovery → Apple wallpaper catalog: reads catalog
- Storage mode detection → Sonoma user asset store: Sonoma mode
- Storage mode detection → Legacy system asset store: legacy mode
- Catalog discovery → Asset state check: catalog entries
- Storage mode detection → Asset state check: active directory
- Asset state check → Filesystem metadata: checks sizes
- Asset state check → Interactive selection: availability and categories
- Interactive selection → Action dispatcher: selected targets and action
- Action dispatcher → Download pipeline: download
- Action dispatcher → Selected-file deletion: delete
- Download pipeline → Filesystem metadata: verifies free space
- Download pipeline → Apple CDN: streams missing assets
- Download pipeline → Sonoma user asset store: writes in Sonoma mode
- Download pipeline → Legacy system asset store: writes in legacy mode
- Selected-file deletion → Sonoma user asset store: removes selected files
- Selected-file deletion → Legacy system asset store: removes selected files
- Selected-file deletion → idleassetsd daemon: stops after legacy mutation