-
Notifications
You must be signed in to change notification settings - Fork 536
[BUG] noctalia msg wallpaper-set <path> does not work if there's at least one space character in the <path> #3003
Open
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
- Rename any existing image file so the filename includes at least one space character (e.g.
mv image-1.png 'image 1.png') - Set this newly renamed image file as wallpaper via
noctalia msg wallpaper-set "image 1.png", ornoctalia msg wallpaper-set 'image 1.png', ornoctalia 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
Type
Fields
Give feedbackNo fields configured for issues without a type.