4 const fs = require("fs");
5 const path = require("path");
6 autoUpdater.autoDownload = false;
8 +// Set the config directory to XDG_CONFIG_HOME/ytdownloader
9 +const xdgConfigHome = process.env.XDG_CONFIG_HOME;
10 +let configDir = app.getPath('home') + "/.config/ytdownloader";
12 + configDir = xdgConfigHome + "/ytdownloader";
14 +app.setPath ('userData', configDir);
16 /**@type {BrowserWindow} */
18 let secondaryWindow = null;