From b29a2b8d6b891196b1b62a6da177f88a431d1888 Mon Sep 17 00:00:00 2001 From: andrzej Date: Sun, 13 Oct 2024 14:45:05 +0200 Subject: [PATCH] set cwd --- scripts/scripts/hyprland-slideshow.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/scripts/hyprland-slideshow.sh b/scripts/scripts/hyprland-slideshow.sh index 3222751..22d0050 100755 --- a/scripts/scripts/hyprland-slideshow.sh +++ b/scripts/scripts/hyprland-slideshow.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +##set working directory to location of this script +cd "$(dirname "$0")" + PIDFILE=bg_slideshow.pid remove_pidfile() {