Closed tidux closed 4 years ago
An older build of sway 1.1-rc1 on another Arch machine with the same version of gdk-pixbuf2 installed does not have this issue so it appears to be a recent regression.
This appears to be fixed now. Rebuilding wlroots, sway, and swaybg from source resolved the issue. Possibly an Arch packaging issue with dependencies given that it appeared on one Arch machine and not another.
2020-10-28 17:16:32 - [swaybg-1.0/background-image.c:30] Failed to load background image (Couldn’t recognize the image file format for file “.config/awesome/mountains_wallpaper.jpg”).
2020-10-28 17:16:32 - [swaybg-1.0/main.c:438] Failed to load image: .config/awesome/mountains_wallpaper.jpg
2020-10-28 17:16:32 -
I get that error for *.jpg
@uninhm Were you able to find a solution? Getting the same issue using swaylock with --image /path/to/some.svg
(sway/swaylock 1.5 and swaybg 1.0).
The strange thing is that manually locking via a bindsym
key works fine, and the image is shown, but when swaylock is triggered via a swayidle event, the error occurs and the image is not shown.
My swayidle command:
exec swayidle -w \
timeout 300 'swaylock -f' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
timeout 1200 'systemctl hibernate' \
before-sleep 'swaylock -f' \
resume-sleep 'swaymsg "output * dpms on"'
See https://bbs.archlinux.org/viewtopic.php?pid=1940215#p1940215
pacman -Qkk | grep mime
/usr/share/mime Permissions mismatch
errors.sudo chmod -R uga+x /usr/share/mime
pacman -Qkk | grep mime
This also fixed a problem with wofi --show run
for me. I'll paste the error below for search engines:
This is reproducible on git master on an Arch Linux system with gdk-pixbuf2 installed. The build fails outright with -Werror at an error about gdk-pixbuf headers, possibly indicating a change in gdk-pixbuf. Disabling -Werror results in the following issue:
[background-image.c:30] Failed to load background image (Couldn't recognize the image file format for file "/path/to/background.png").
[main.c:438] Failed to load image: /path/to/background.png
This has been reproduced with both jpg and png wallpapers, which Sway normally supports.