diff options
| -rw-r--r-- | slock/config.def.h | 1 | ||||
| -rw-r--r-- | 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) { |
