From 66b7d370286b1b9c7a653c891fd685cdbbe83ffa Mon Sep 17 00:00:00 2001 From: Hamcha Date: Thu, 4 Nov 2021 14:12:07 +0100 Subject: [PATCH] Fix for unsplash pic paths --- mods/unsplash.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/unsplash.go b/mods/unsplash.go index ed1087c..38dabad 100644 --- a/mods/unsplash.go +++ b/mods/unsplash.go @@ -10,6 +10,7 @@ import ( "log" "math/rand" "os" + "path/filepath" "strings" "git.fromouter.space/crunchy-rocks/draw2d" @@ -42,7 +43,7 @@ func unsplash_init() { assert(err) for _, file := range files { - pics = append(pics, file.Name()) + pics = append(pics, filepath.Join(*unsplashpath, file.Name())) } log.Println("[unsplash] Loaded!")