Code Monkey home page Code Monkey logo

Comments (5)

tidux avatar tidux commented on August 24, 2024

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.

from swaybg.

tidux avatar tidux commented on August 24, 2024

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.

from swaybg.

uninhm avatar uninhm commented on August 24, 2024
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

from swaybg.

matt-snider avatar matt-snider commented on August 24, 2024

@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"'

from swaybg.

sethidden avatar sethidden commented on August 24, 2024

See https://bbs.archlinux.org/viewtopic.php?pid=1940215#p1940215

  1. pacman -Qkk | grep mime
  2. There were some /usr/share/mime Permissions mismatch errors.
  3. sudo chmod -R uga+x /usr/share/mime
  4. pacman -Qkk | grep mime
  5. /usr/share/mime permission mismatch errors no longer there
  6. In terminal: pkill -fe sway
  7. In terminal: sway
  8. Background now shows up

This also fixed a problem with wofi --show run for me. I'll paste the error below for search engines:

broken wofi --show run [artur@t430 ~]$ wofi --show run

(wofi:28741): Gtk-WARNING **: 18:16:24.976: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../gtk/gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Bail out! Gtk:ERROR:../gtk/gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Aborted (core dumped)

from swaybg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.