feat: Update lockscreen to not reload image

This commit is contained in:
2025-05-27 15:39:56 +10:00
parent c6b2087533
commit 89dfbfa617
3 changed files with 14 additions and 20 deletions

View File

@@ -22,8 +22,8 @@ export function setWallpaper(wallpaperPath) {
const lockpaperPath = `${directory}lockpaper${extension}`;
// DELETE ANY OLD IMAGES
OS.exec(["zsh", "-c", `rm ${directory}lockpaper*`]);
//OS.exec(["zsh", "-c", `rm ${directory}lockpaper*`]);
// Create symlink from wallpaper to lockpaper
OS.exec(["zsh", "-c", `ln -s ${wallpaperPath} ${lockpaperPath}`]);
//OS.exec(["zsh", "-c", `ln -s ${wallpaperPath} ${lockpaperPath}`]);
OS.exec(["zsh", "-c", `ln -sf ${wallpaperPath} /home/nathan/.config/lockpaper`]);
}