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
773 stars 54 forks source link

Hyprpaper can't found file with socat but can with hyprctl #101

Closed cylian914 closed 12 months ago

cylian914 commented 1 year ago

hi, i am trying to make variety support hyprpaper but i don't want to only make it support only hyprland so i can't use hyprctl.

When using socat it seem hyprpaper's preload function can't found the wallpaper but can when using it with the exact same argument with hyprctl hyprpaper, i even made a bash script so i am sure i don't do any error. here the simple bash script:

WP=/home/cylian91/.config/variety/wp/burningflag.jpg
hyprctl hyprpaper preload $WP
sleep 10 # wait just in case
echo             "preload $WP" | socat - UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.hyprpaper.sock

the script return

ok
preload failed (no such file)
cylian914 commented 1 year ago

it look like socat add these at the end:

[LOG] char 57: 32
[LOG] char 58: 92
[LOG] char 59: 110
[LOG] char 60: 10
vaxerski commented 1 year ago

might be an issue with socat then no?

If you don't wanna use hyprctl, why not connect to the socket via normal, plain old C, or whatever programming language you use?

cylian914 commented 12 months ago

yes its an issue wit socat and not hyprland, the issue can be closed