Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to load wallpaper on startup #94

Open
Efilex opened this issue Aug 30, 2023 · 5 comments
Open

fail to load wallpaper on startup #94

Efilex opened this issue Aug 30, 2023 · 5 comments

Comments

@Efilex
Copy link

Efilex commented Aug 30, 2023

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
Copy link
Member

does hyprpaper have read access to that directory?

@Efilex
Copy link
Author

Efilex commented Sep 11, 2023

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
Copy link
Member

IIRC they should already be... odd.

@Efilex
Copy link
Author

Efilex commented Sep 11, 2023

IIRC they should already be... odd.

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

@slowsage
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants