fix(wallpaper): show the preview for the default and any chosen wallpaper #80
No reviewers
Labels
No labels
breadbug
bug
displays
enhancement
keybinds
network
phase-1
power
privacy
recovery
search
snapshots
sound
ui
ux
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Breadway/bos-settings!80
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/bset-70-wallpaper-preview"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes BSET-70
What
The asset protocol scope only covered
~/Pictures/Backgrounds/**. So the stock BOS wallpaper in/usr/share/backgrounds/bos, which every fresh install starts with, and any image chosen from another folder rendered as an empty box with only its filename.tauri.conf.json: the scope also covers/usr/share/backgrounds/**and/usr/share/wallpapers/**.breadpaper.rs:get_current_wallpaperandget_wallpapers_by_outputallow the current wallpaper path as a single file, viaasset_protocol_scope().allow_file. They only do this when the path is absolute, has a wallpaper image extension and is an existing file. A pick from Downloads therefore previews too, and nothing broader is opened.Tests
bread-background.pngfrom/usr/share/backgrounds/bos. On main it was a blank box.Capability changes
None. The webview can additionally load images from the system wallpaper folders and the exact current wallpaper file.
Review verdict for BSET-70: PASS on head
e1ca0f5e9a(base maind432319, unchanged at review time).Criteria
Non-blocking notes
Checks on the exact head
e1ca0f5e9aMerged with a merge commit:
7c7749db9e(parentsa80bdf3and reviewed heade1ca0f5). main moved three times during review (#79, #82, #81/#83, none touching the wallpaper files). I re-ran fmt, clippy --locked -D warnings, cargo test --locked (183 passed), npm ci, check, test and build on the PR merged intoa80bdf3immediately before merging; all green. Forgejo CI check was green one1ca0f5. The merged diff on main is exactly the 2 reviewed files (+19/-4). Awaiting live verification of the wallpaper preview on the integrated build, so the card stays in review.