Repository navigation
wallpaper: list wallpapers through the background process - #4150
Merged
Merged
Conversation
Cycling listed its folder with a find command in a shell string, which broke on folder names with a quote and file names with a newline. Add a wallpaper.list request that walks the folders in Go and returns a sorted list, and have the cycling service use it instead of its find processes. The walk follows symlinks with a loop guard, lists a symlinked file once, skips dot directories and stops at 50,000 items or after 30 seconds. A KDE wallpaper package counts as one wallpaper, and cycling uses the size closest to the shape of the display. Next and Previous now need the background process, like the schedule already did.
Member
|
/claude review |
Contributor
Claude reviewNo issues found. |
dux-ci Bot
pushed a commit
that referenced
this pull request
Nov 5, 2026
port 2.1 (cherry picked from commit 3d108ce)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Automatic cycling broke on folders with a
"in the name and on file names with a newline, because the folder was listed with a shell command. The list now comes from the background process, so those work.This is the first of a series of PRs for a wallpaper library: multiple wallpaper folders that can be managed and combined for slideshows, hiding wallpapers that don't fit a display, display groups, folders/collections and slideshows per display. All of those, and Super+Y showing what's available on a display, need one list of wallpapers across several folders so this PR moves the listing into the background process first, without adding any new settings yet.
A KDE wallpaper package (for example
/usr/share/wallpapers/Next) is now also supported and counts as one wallpaper instead of each of its sizes and its dark variants being cycled separately. The size closest to the shape of the display is used. Automatic choosing and respect for light/dark images will be added later as well.Behavior changes:
Type of change
Related issues
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings