Skip to content

[BUG] Wallpaper can't be set declaratively well #3714

Description

@LiAlH4qwq

Submission checklist

  • I have searched existing issues and confirmed this is not a duplicate.
  • I am using the latest available version of Noctalia.

Bug description

When I set wallpaper.default.path and wallpaper.last.path in ~/.config/noctalia/config.toml, the wallpaper won't be applied, unless I set the it from GUI panel. After that, I found ~/.local/state/noctalia/config.toml got a new option called wallpaper.monitors.eDP-1.path. However, this option is a device-specific option, which seems shouldn't go into declarative config like NixOS config.

Steps to reproduce

  1. Set wallpaper.default.path and wallpaper.last.path in ~/.config/noctalia/config.toml.
  2. rm -rf ~/.local/state/noctalia
  3. Restart session.
  4. Wallpaper didn't apply.

Expected behavior

When no wallpaper.monitors.<monitor>.path set, wallpaper settings in wallpaper.default.path and wallpaper.last.path should be applied to all monitors.

Actual behavior

When no wallpaper.monitors.<monitor>.path set, wallpaper settings in wallpaper.default.path and wallpaper.last.path takes no effect.

When only wallpaper.default.path set, the default owl wallpaper shown.

When wallpaper.default.path and wallpaper.last.path set, a grey background will shown.

Logs / error output


Noctalia version

v5.0.0

Compositor

Niri

Distribution

NixOS

Environment information

Installation method: NixOS flake
Configuration method: Home Manager module

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions