mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
fix: leave behind the unmodified XDG_CURRENT_DESKTOP variable (#23512)
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user