From e4e8e6b84baadf9845c1b591d0fa764cf1bd908c Mon Sep 17 00:00:00 2001 From: ElectroMutex <97535877+SkillfulElectro@users.noreply.github.com> Date: Thu, 6 Jun 2024 14:11:34 +0330 Subject: [PATCH] Update main.js --- main.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 1414f1c..30bcf76 100644 --- a/main.js +++ b/main.js @@ -1,9 +1,15 @@ -// main.js - const { app, BrowserWindow, ipcMain , Menu , session , shell } = require('electron'); const path = require('path'); const fs = require('fs'); +// just to make everything be clear +// in the future for each gui app , this data will be saved where +// the app wants ! +const appDirectory = path.dirname(app.getAppPath()); +const customDirectoryPath = path.join(appDirectory, 'RenderCaches'); +app.setPath('userData', customDirectoryPath); +app.setPath('appData', customDirectoryPath); +app.setPath('temp', customDirectoryPath); const options = { url: '',