hyprwm / hyprpaper

Hyprpaper is a blazing fast wayland wallpaper utility with IPC controls.
https://wiki.hyprland.org/Hypr-Ecosystem/hyprpaper/
BSD 3-Clause "New" or "Revised" License
772 stars 54 forks source link

fail to load wallpaper on startup #94

Open Efilex opened 1 year ago

Efilex commented 1 year ago

Hello, I have stumbled upon a issue when trying to load my wallpaper:

If i run hyprpaper from any directory i receive the following error:

[LOG] Welcome to hyprpaper!
built from commit  ()
[ERR] createSurfaceFromJPEG: file doesn't exist??

My hyprpaper.conf looks like this:

ipc=off
preload = /usr/share/wallpapers/image.jpg

#set the default wallpaper(s) seen on inital workspace(s) --depending on the number of monitors used
wallpaper = DP-1,/usr/share/wallpapers/image.jpg

If I change the directory to /usr/share/wallpapers and then execute hyprpaper it works.

Anyone else having this error?

vaxerski commented 1 year ago

does hyprpaper have read access to that directory?

Efilex commented 1 year ago

Hello,

i came around to checking just now, and the permissions on the folder should suffice. I also managed to find the error. Wallpapers packaged for plasma are saved into the file system like this:

ls -la /usr/share/wallpapers/Path/contents/images/
total 900
drwxr-xr-x 2 root root   4096 24. Aug 11:10 .
drwxr-xr-x 3 root root   4096 24. Aug 11:10 ..
lrwxrwxrwx 1 root root     13  1. Aug 17:31 1280x1024.jpg -> 2560x1600.jpg
lrwxrwxrwx 1 root root     13  1. Aug 17:31 1280x800.jpg -> 2560x1600.jpg
lrwxrwxrwx 1 root root     13  1. Aug 17:31 1440x900.jpg -> 2560x1600.jpg
lrwxrwxrwx 1 root root     13  1. Aug 17:31 1600x1200.jpg -> 2560x1600.jpg
lrwxrwxrwx 1 root root     13  1. Aug 17:31 1638x1024.jpg -> 2560x1600.jpg
lrwxrwxrwx 1 root root     13  1. Aug 17:31 1680x1050.jpg -> 2560x1600.jpg
lrwxrwxrwx 1 root root     13  1. Aug 17:31 1920x1080.jpg -> 2560x1600.jpg
lrwxrwxrwx 1 root root     13  1. Aug 17:31 1920x1200.jpg -> 2560x1600.jpg
lrwxrwxrwx 1 root root     13  1. Aug 17:31 2560x1440.jpg -> 2560x1600.jpg
-rwxr-xr-x 1 root root 910087  1. Aug 17:31 2560x1600.jpg
lrwxrwxrwx 1 root root     13  1. Aug 17:31 640x480.jpg -> 2560x1600.jpg
lrwxrwxrwx 1 root root     13  1. Aug 17:31 800x600.jpg -> 2560x1600.jpg

Setting the wallpaper to a link in the config file does not seem to work right now. I set the wallpaper to the linked file now, which solved the problem. Maybe enabling links in the config can be included in a future patch?

vaxerski commented 1 year ago

IIRC they should already be... odd.

Efilex commented 1 year ago

IIRC they should already be... odd.

Maybe it is an issue with my setup then? I'd be glad to help out if needed. :+1:

slowsage commented 1 year ago

I think #90 already fixed this. Please check that you have the latest version from git (hyprpaper-git on arch) . The latest release was Aug 3rd. The fix was merged on Aug 21st.