You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: electron/build/patch/backend/main.js
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,18 @@
1
1
// @ts-check
2
+
3
+
// Patch for on Linux when `XDG_CONFIG_HOME` is not available, `node-log-rotate` creates the folder with `undefined` name.
4
+
// See https://github.com/lemon-sour/node-log-rotate/issues/23 and https://github.com/arduino/arduino-ide/issues/394.
5
+
// If the IDE2 is running on Linux, and the `XDG_CONFIG_HOME` variable is not available, set it to avoid the `undefined` folder.
6
+
// From the specs: https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html
7
+
// "If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used."
0 commit comments