diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-09-04 16:18:44 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-09-04 16:18:44 +0900 |
| commit | 46471b7ba7a7db6bdd8018c0314ff16fc4d6f366 (patch) | |
| tree | c1a5a30eff4166708332aa22be03db93e08cc1ce /slock/slock.c | |
| parent | 4d1104a0306af5e8a268197a3f8250e9e9cfc3c9 (diff) | |
Init
Diffstat (limited to 'slock/slock.c')
| -rw-r--r-- | slock/slock.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |
