summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slock/config.h2
-rw-r--r--slock/slock.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/slock/config.h b/slock/config.h
index d363e52..4ceddcb 100644
--- a/slock/config.h
+++ b/slock/config.h
@@ -16,7 +16,7 @@ static const char *colorname[NUMCOLS] = {
static const int failonclear = 1;
/* Background image path, should be available to the user above */
-static const char* background_image = "Private/photo/A124864F-D53C-469A-93C2-28E101E4B826.png";
+static const char* background_image = "";
/* default message */
static const char *message = "THESIAH";
diff --git a/slock/slock.c b/slock/slock.c
index c7bf489..0174da5 100644
--- a/slock/slock.c
+++ b/slock/slock.c
@@ -679,9 +679,12 @@ main(int argc, char **argv) {
int result = system(command);
free(command);
if (result != 0) {
- background_image = "Pictures/wallpaper/personal-default.png";
+ background_image = ".local/share/lock";
personalblur = 0;
}
+ if (strcmp(background_image, "") == 0) {
+ background_image = ".local/share/lock";
+ }
size_needed = strlen(home_path) + strlen(background_image) + 2; // +2 for slash and null terminator
char* full_background_image = malloc(size_needed);
strcpy(full_background_image, home_path);