From d834eed74801fa4f063c37c933a1d3674a956c81 Mon Sep 17 00:00:00 2001 From: Wizzard <25581244+Wizzard@users.noreply.toomuchslop.com> Date: Mon, 16 Oct 2023 16:40:07 -0400 Subject: [PATCH] Save image to /tmp rather than current directory --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 594bc03..b96e336 100644 --- a/main.js +++ b/main.js @@ -67,8 +67,8 @@ async function getDominantColor(imageBuffer) { async function setAsWallpaper(buffer) { try { - await fs.promises.writeFile('current_album_cover.png', buffer); - exec('feh --bg-center current_album_cover.png'); + await fs.promises.writeFile('/tmp/current_album_cover.png', buffer); + exec('feh --bg-center /tmp/current_album_cover.png'); console.log("Wallpaper set using feh."); } catch (error) { console.error("Error setting wallpaper:", error);