Registry / utility / wallpaper

wallpaper

JSON →
library3.2.0rscratesunverified

Gets and sets the desktop wallpaper/background on multiple platforms.

# Cargo.toml [dependencies] wallpaper = "3.2.0"
INSTALL
IMPORT
SIG · WALLPAPER
W
wallpaper
utilityrustv3.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

set_from_path
use wallpaper::set_from_path;

Set the desktop wallpaper from an image file path.

use wallpaper::set_from_path; fn main() { set_from_path("/path/to/image.jpg").unwrap(); println!("Wallpaper set!"); }
Debug
Known issues
gotchaOn Linux, requires a desktop environment that supports the freedesktop.org specification (e.g., GNOME, KDE).
fix
Ensure you are running a compatible desktop environment or use a different method.
affects: >=3.0.0
Upgrade
Version history
3.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
wallpaper — cargo add wallpaper · libregistry