fix: leave behind the unmodified XDG_CURRENT_DESKTOP variable (#23512)
This commit is contained in:
parent
dcbed18f44
commit
54ff423dac
2 changed files with 12 additions and 0 deletions
|
@ -186,6 +186,7 @@ function currentPlatformSupportsAppIndicator () {
|
|||
}
|
||||
|
||||
// Workaround for electron/electron#5050 and electron/electron#9046
|
||||
process.env.ORIGINAL_XDG_CURRENT_DESKTOP = process.env.XDG_CURRENT_DESKTOP;
|
||||
if (currentPlatformSupportsAppIndicator()) {
|
||||
process.env.XDG_CURRENT_DESKTOP = 'Unity';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue