mortie / swaylock-effects

Swaylock, with fancy effects
MIT License
698 stars 44 forks source link

effect-compose path bug #67

Open etrnal70 opened 2 years ago

etrnal70 commented 2 years ago

Using ~/image/image.png result in

[effects.c:374] Compose effect: Failed to load image file '~/image/image.png' (Failed to open file “~/image/image.png”: No such file or directory).

But using full path like /home/user/image/image.png works

Image path works though using ~

ErikReider commented 2 years ago

Use $HOME instead of ~

etrnal70 commented 2 years ago

Using $HOME also give the same error

2021-09-03 06:20:07 - [effects.c:374] Compose effect: Failed to load image file '$HOME/Data/wallpaper/output.png' (Failed to open file “$HOME/Data/wallpaper/output.png”: No such file or directory).

ErikReider commented 2 years ago

Is it a bash script? If not, you'll be able to get the environment variable through your specific language if it supports it

etrnal70 commented 2 years ago

I'm using a config file in $HOME/.config/swaylock/config