Skip to content

feat(wallpapers-bing): restore preferred-region picker - #3

Open
perlowja wants to merge 2 commits into
singularityos-lab:mainfrom
perlowja:feat/bing-preferred-market-picker
Open

perlowja wants to merge 2 commits into
singularityos-lab:mainfrom
perlowja:feat/bing-preferred-market-picker

Conversation

@perlowja

@perlowja perlowja commented Sep 18, 2026 •

Copy link
Copy Markdown

Adds a Bing Preferred Region SelectionRow to the wallpapers-bing plugin settings.

The picker obtains available markets from the helper, reads the current preference through the helper, and delegates preference updates to the helper without accessing distro-specific configuration files.

Verified by building wallpapers-bing/libwallpapers-bing.so with Meson and Ninja in a Debian trixie container against the current libsingularity fallback.

AI assistance: disclosed

@perlowja
perlowja force-pushed the feat/bing-preferred-market-picker branch 2 times, most recently from 2dabaa1 to e395533 Compare September 18, 2026 20:15
@perlowja

Copy link
Copy Markdown
Author

@mirkobrombin bumping this one too - restores the preferred-region picker for the Bing wallpaper source.

@mirkobrombin

Copy link
Copy Markdown
Member

Singularity must stay distro-agnostic: the plugin shouldn't write another distro's config (~/.config/ncz-wallpaper/bing-markets) or hardcode the market list. Get markets from the helper's markets command and persist the choice through the helper. Also: bing_markets_updating is never set, use string.ascii_down() instead of ascii_lower, and drop the cix-installer/zoder references from comments.

Adds a Bing Preferred Region SelectionRow to get_settings_widget() --
14 options (All Markets, No Preference, plus 13 individual markets
labelled Region - Market), reading/writing
~/.config/ncz-wallpaper/bing-markets, the same file
cix-installer's 45-wallpaper-rotator.sh ncz-wallpaper-bing helper
already reads.

Ports a complete, working implementation (fa5a38a on singularity-shell,
zoder-reviewed, full ninja+meson test pass) that lived inline on the
Desktop settings page before the plugin-based wallpaper manager
(132efb7) deleted it as collateral damage of that rewrite -- it never
had a new home in the plugin architecture. Every market is always
fetched and combined by the helper regardless of this setting; the
picker only chooses whose caption/credit wins when the same photo is
shared across regions.

Verified: full ninja -C builddir build succeeds (0 errors) against a
fresh subproject checkout of libsingularity.

plugin's settings widget, adjusted class/field placement for the
plugin context.

Assisted-by: Claude Code:claude-sonnet-5
AI-Scope: Recovered and ported the pre-deletion 320-line Bing preferred-market SelectionRow picker (from before upstream commit 132efb7 removed it) into the new wallpapers-bing plugin's settings widget.
Assisted-by: Codex:gpt-5.6-sol
AI-Scope: Updated the Bing market picker to load and persist settings through the wallpaper helper.
@perlowja
perlowja force-pushed the feat/bing-preferred-market-picker branch from 0900713 to d1ef213 Compare September 30, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants