Fails to set background using image
I am using the latest commit from the master branch.
Color backgrounds work fine, the only problem is with images. Here is the error output:
```
$ git rev-parse HEAD
1bf721fcb61a7c78cc618868640a3ab24c5a3077
$ ./build/swaybg -i /tmp/washington_lake.jpg -m fill
2025-11-06 23:03:43 - [main.c:332] Found config * for output HDMI-A-1 (DENON, Ltd. DENON-AVAMP 0x01010101)
2025-11-06 23:03:43 - [background-image.c:30] Failed to load background image (Failed to load image “/tmp/washington_lake.jpg”: Loader process exited early with status '1'Command:
"bwrap" "--unshare-all" "--die-with-parent" "--chdir" "/" "--ro-bind" "/usr" "/usr" "--dev" "/dev" "--ro-bind-try" "/etc/ld.so.cache" "/etc/ld.so.cache" "--ro-bind-try" "/nix/store" "/nix/store" "--tmpfs" "/tmp-home" "--tmpfs" "/tmp-run" "--clearenv" "--setenv" "HOME" "/tmp-home" "--setenv" "XDG_RUNTIME_DIR" "/tmp-run" "--setenv" "XDG_RUNTIME_DIR" "/run/user/1000" "--symlink" "/usr/lib" "/lib" "--symlink" "/usr/lib" "/lib64" "--seccomp" "11" "/usr/lib/glycin-loaders/2+/glycin-image-rs" "--dbus-fd" "10").
2025-11-06 23:03:43 - [main.c:665] Failed to load image: /tmp/washington_lake.jpg
2025-11-06 23:03:43 - [background-image.c:30] Failed to load background image (Failed to load image “/tmp/washington_lake.jpg”: Loader process exited early with status '1'Command:
"bwrap" "--unshare-all" "--die-with-parent" "--chdir" "/" "--ro-bind" "/usr" "/usr" "--dev" "/dev" "--ro-bind-try" "/etc/ld.so.cache" "/etc/ld.so.cache" "--ro-bind-try" "/nix/store" "/nix/store" "--tmpfs" "/tmp-home" "--tmpfs" "/tmp-run" "--clearenv" "--setenv" "HOME" "/tmp-home" "--setenv" "XDG_RUNTIME_DIR" "/tmp-run" "--setenv" "XDG_RUNTIME_DIR" "/run/user/1000" "--symlink" "/usr/lib" "/lib" "--symlink" "/usr/lib" "/lib64" "--seccomp" "11" "/usr/lib/glycin-loaders/2+/glycin-image-rs" "--dbus-fd" "10").
2025-11-06 23:03:43 - [main.c:665] Failed to load image: /tmp/washington_lake.jpg
^C
$ ./build/swaybg -c 00aedb
2025-11-06 23:04:07 - [main.c:332] Found config * for output HDMI-A-1 (DENON, Ltd. DENON-AVAMP 0x01010101)
^C
$ ./build/swaybg -v
swaybg version 1.2.1-1bf721f (Nov 6 2025, branch 'master')
```
关闭于 2025-11-10 3 条评论