chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / yt / ytdownloader / config-dir.patch
blobeb3684a248870bcdc6bffe4bd628df308081ec43
1 --- a/main.js
2 +++ b/main.js
3 @@ -13,6 +13,15 @@
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";
11 +if (xdgConfigHome) {
12 + configDir = xdgConfigHome + "/ytdownloader";
14 +app.setPath ('userData', configDir);
16 /**@type {BrowserWindow} */
17 let win = null;
18 let secondaryWindow = null;