Small utility that keeps the Windows and macOS desktop updated with the daily Bing wallpaper. It fetches the latest image from https://cn.bing.com and applies it at login.
- blocks until an Internet connection is available before attempting to download
- writes the image once per calendar day (skips download if the previous file is still from today)
- updates the macOS desktop through AppKit
- updates both the Windows desktop and lock screen via native Win32/WinRT APIs
- Rust 2024 toolchain (
rustcandcargo) - Windows 10+ or macOS
- Network access to
https://cn.bing.comto download the JSON feed and image
cargo build --releasecargo run --releaseThe executable saves the image at ~/Pictures/today_bing.jpg and only downloads once per day.
Build the background app bundle with:
./scripts/package-macos.shMove target/release/Wallpaper.app to /Applications, open it once, then add it in System Settings > General > Login Items. The app is an agent app, so it does not open Terminal or show a Dock icon when launched at login.
chrono,ntex,serde_json, and the platform-specific crates are included inCargo.toml.- This project defaults to a release build (optimized, link-time optimized, and stripped). Use
cargo runif you want faster iteration.