if the path potentially contains a ':', prefix it with another ':' to prevent interpreting part of it as
However this mechanism is not working as intended. I tried the same image with a ":" free path, and containg ":". Despite prefixing ("::"), there is no way to get the image that contains ":" to be recognized, and I get the following error message:
[background-image.c:30] Failed to load background image (Failed to open file “:b.jpg”: No such file or directory).
Problem
There is no way to use ":" in an image path.
The MAN page says:
However this mechanism is not working as intended. I tried the same image with a ":" free path, and containg ":". Despite prefixing ("::"), there is no way to get the image that contains ":" to be recognized, and I get the following error message:
Affected versions
The latest development version, commit cca2436ba535d17c49b7d7ba75ebfa6a18ec9209 is affected.
Steps to reproduce
a.jpg
cp a.jpg a:b.jpg
Then, If you runswaylock -i a.jpg
it will work just fine. But if you tryswaylock -i a:b.jpg
orswaylock -i a::b.jpg
it will fail.Expected result
Acording to the MAN page, running
swaylock -i a::b.jpg
should be valid.