From 0bbc6ee96491c8f9619148018214427d8ca026b4 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sun, 9 Feb 2025 03:24:35 +0900 Subject: modified slock/config.def.h, modified slock/slock.c --- slock/config.def.h | 1 + slock/slock.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/slock/config.def.h b/slock/config.def.h index 2a8cd1b..92e705f 100644 --- a/slock/config.def.h +++ b/slock/config.def.h @@ -53,6 +53,7 @@ static const int pixelSize = 0; /* Background image path, should be available to the user above */ static const char *background_image = ""; +static const char *private_image = "Private/photo/19CDB48F-C92D-437D-A65E-F7DD30F0A05F.png"; /* PAM service that's used for authentication */ static const char *pam_service = "system-login"; diff --git a/slock/slock.c b/slock/slock.c index 040012d..3293def 100644 --- a/slock/slock.c +++ b/slock/slock.c @@ -714,8 +714,8 @@ main(int argc, char **argv) { snprintf(command, size_needed, "mount | grep -q ' %s/Private '", home_path); int result = system(command); free(command); - if (result != 0) { - background_image = ".local/share/wallpapers/lock"; + if (result == 0) { + background_image = private_image; privateblur = 0; } if (strcmp(background_image, "") == 0) { -- cgit v1.2.3