summaryrefslogtreecommitdiff
path: root/slock
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-09 03:24:35 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-09 03:24:35 +0900
commit0bbc6ee96491c8f9619148018214427d8ca026b4 (patch)
treee4ac9101f5f795af72eed493c00031a480c940f2 /slock
parent36f7b343c714566d5bf931e768f0536a12d67c2f (diff)
modified slock/config.def.h, modified slock/slock.c
Diffstat (limited to 'slock')
-rw-r--r--slock/config.def.h1
-rw-r--r--slock/slock.c4
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) {