Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[BUG] noctalia msg wallpaper-set <path> does not work if there's at least one space character in the <path> #3003

Open
Labels

Description

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

As the title mentioned, the noctalia msg wallpaper-set <path> command does not work if there's at least one space character in the <path>, even when it is correctly quoted or escaped. Some examples are provided in the screenshot attached below.

In contrast, changing to the same wallpaper through the UI wallpaper selection panel (in this case I use a Niri keybind) works just fine:

Mod+Slash { spawn-sh "noctalia msg panel-toggle wallpaper" }

Steps to reproduce

  1. Rename any existing image file so the filename includes at least one space character (e.g. mv image-1.png 'image 1.png')
  2. Set this newly renamed image file as wallpaper via noctalia msg wallpaper-set "image 1.png", or noctalia msg wallpaper-set 'image 1.png', or noctalia msg wallpaper-set image\ 1.png

Expected behavior

The wallpaper should change with an ok terminal output log.

Actual behavior

Error output log error: path does not exist shows up and wallpaper doesn't change.

Logs / error output

❯ noctalia msg wallpaper-set '/home/sondhg/Pictures/walls/FULLHD-EVA 01.png'
error: path does not exist
❯ noctalia msg wallpaper-set '/home/sondhg/Pictures/walls/FULLHD-EVA 01 Reimagined.png'
error: path does not exist
❯ noctalia msg wallpaper-set '/home/sondhg/Pictures/walls/imgur_SELjK_001_bLxcjh3.png'
ok
❯ noctalia msg wallpaper-set /home/sondhg/Pictures/walls/imgur_SELjK_001_bLxcjh3.png
ok
❯ noctalia msg wallpaper-set /home/sondhg/Pictures/walls/FULLHD-EVA\ 01.png
error: path does not exist
❯ noctalia msg wallpaper-set "/home/sondhg/Pictures/walls/FULLHD-EVA 01.png"
error: path does not exist

Noctalia version

v5.0.0 (5abdd2a)

Compositor

Niri

Distribution

Arch-based

Environment information

Installion method: AUR
GPU: Intel Iris Xe Graphics @ 1.30 GHz [Integrated]

Additional context

Tests with files whose name does or does not include space character:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /