File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -123,3 +123,14 @@ the one downloaded by `npm install`. Usage:
123
123
``` sh
124
124
export ELECTRON_OVERRIDE_DIST_PATH=/Users/username/projects/electron/out/Debug
125
125
```
126
+
127
+ ## Set By Electron
128
+
129
+ Electron sets some variables in your environment at runtime.
130
+
131
+ ### ` ORIGINAL_XDG_CURRENT_DESKTOP `
132
+
133
+ This variable is set to the value of ` XDG_CURRENT_DESKTOP ` that your application
134
+ originally launched with. Electron sometimes modifies the value of ` XDG_CURRENT_DESKTOP `
135
+ to affect other logic within Chromium so if you want access to the _ original_ value
136
+ you should look up this environment variable instead.
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ function currentPlatformSupportsAppIndicator () {
178
178
}
179
179
180
180
// Workaround for electron/electron#5050 and electron/electron#9046
181
+ process . env . ORIGINAL_XDG_CURRENT_DESKTOP = process . env . XDG_CURRENT_DESKTOP ;
181
182
if ( currentPlatformSupportsAppIndicator ( ) ) {
182
183
process . env . XDG_CURRENT_DESKTOP = 'Unity' ;
183
184
}
You can’t perform that action at this time.
0 commit comments