Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SkillfulElectro authored Jun 6, 2024
1 parent ba5c9ed commit e4e8e6b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
@@ -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: '',
Expand Down

0 comments on commit e4e8e6b

Please sign in to comment.