Skip to content

[BUG] wallpaper_depth plugin fails if wallpaper is a symlink #48

Description

@trinistr

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

wallpaper_depth plugin fails to set generated mask if wallpaper is set to a symlink, as one side of path comparison (completedJob.wallpaperPath) resolves the symlink in service.luau:217, leading to comparison returning false.

Steps to reproduce

  1. In Noctalia's wallpaper settings set wallpaper to a symlink.
  2. Install plugin.
  3. Look at output in plugin's panel.

Expected behavior

Mask is generated and set successfully.

Actual behavior

Mask is generated successfully, but is not set, because plugin believes the wallpaper is different.

Logs / error output

Only visible output is ["service.invalid_result"](https://github.com/noctalia-dev/official-plugins/blob/8cb833c3e2502f57e49d34fa64386b4d66794b77/wallpaper_depth/service.luau#L222) error's translation.

Noctalia version

noctalia v5.0.0 (v5.0.0-beta.8-93-gb51efd03f70a)

Compositor

Niri

Distribution

Arch-based

Environment information

Installation method: AUR for Noctalia, UI for plugin.

Additional context

  • Commenting out path comparison allows plugin to work correctly.
  • service.luau needs to be saved/reloaded twice to actually work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions