From 7e43f9f60060b67b6c030393757d3e7ff1d4a58c Mon Sep 17 00:00:00 2001 From: John Mertz Date: Fri, 19 Apr 2024 15:05:30 -0600 Subject: [PATCH] Update PID file location to XDG state path --- sway/wallpaper.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/wallpaper.pl b/sway/wallpaper.pl index 54f07ef..ae799e7 100755 --- a/sway/wallpaper.pl +++ b/sway/wallpaper.pl @@ -56,7 +56,7 @@ sub new($class, %args) $args{im} = Image::Magick->new(); $args{error} = (); - $args{pidfile} = "/tmp/$ENV{USER}-wallpaper.pid"; + $args{pidfile} = "$ENV{HOME}/.local/state/wallpaper.pid"; return bless { %args }; }