Skip to content

Wallpaper scale behaves inconsistently when set via script #38

@6gnc8fjfr6-hub

Description

@6gnc8fjfr6-hub

When using desktoppr in a script to manage the wallpaper image and scale independently, two distinct bugs appear:

Bug 1 — Changing the image resets the scale

When updating only the wallpaper image (without touching the scale), the scale changes anyway. The scale appears to be stored per-image rather than as an independent setting.
Shown here: https://github.com/user-attachments/assets/0d2a617b-710b-4a9f-9a6a-119de0019be8

Bug 2 — Scale changes are unreliable

When setting the scale via desktoppr in a script, one of two failure modes occurs:

Steps to reproduce

  1. Set a wallpaper image (image A) and a specific scale (scale A) via script.
  2. Set a new wallpaper image (image B) and a new scale (scale B) via script.
  3. Switch the wallpaper back to image A → observe whether the scale reverts to scale A.
  4. Switch the wallpaper back to image B → observe whether the scale reverts to scale B.
  5. Check the applied scale in System Settings and via desktoppr scale → observe any discrepancy.

Expected behavior

  • Image and scale are independent settings; changing one does not affect the other.
  • After setting a scale, both macOS and desktoppr scale consistently reflect the new value.

Suspected cause

An internal database (likely com.apple.desktop.plist or desktoppicture.db) appears to not always flush or sync correctly after programmatic changes, leading to stale or mismatched state between what macOS renders and what desktoppr reads back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions