Report linux desktop-related env vars in issue reporter

Fixes #94388
This commit is contained in:
Daniel Imms
2020-04-05 09:12:10 -07:00
parent 5b0460a67e
commit ebbc6591de
4 changed files with 75 additions and 3 deletions

View File

@@ -168,6 +168,13 @@ ${this.getInfos()}
|Screen Reader|${this._data.systemInfo.screenReader}|
|VM|${this._data.systemInfo.vmHint}|`;
if (this._data.systemInfo.linuxEnv) {
md += `\n|DESKTOP_SESSION|${this._data.systemInfo.linuxEnv.desktopSession}|
|XDG_CURRENT_DESKTOP|${this._data.systemInfo.linuxEnv.xdgCurrentDesktop}|
|XDG_SESSION_DESKTOP|${this._data.systemInfo.linuxEnv.xdgSessionDesktop}|
|XDG_SESSION_TYPE|${this._data.systemInfo.linuxEnv.xdgSessionType}|`;
}
this._data.systemInfo.remoteData.forEach(remote => {
if (isRemoteDiagnosticError(remote)) {
md += `\n\n${remote.errorMessage}`;
@@ -268,4 +275,4 @@ ${table}
</details>`;
}
}
}