networkAgent: Fetch environment from launch context before spawn_async()
This will fetch the right environment for the launched application, without using GNOME Shell's environment. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2993>
This commit is contained in:
parent
7b1223a254
commit
a93465ed69
@ -455,11 +455,12 @@ class VPNRequestHandler extends Signals.EventEmitter {
|
||||
this._newStylePlugin = authHelper.externalUIMode;
|
||||
|
||||
try {
|
||||
const launchContext = global.create_app_launch_context(0, -1);
|
||||
let [success_, pid, stdin, stdout, stderr] =
|
||||
GLib.spawn_async_with_pipes(
|
||||
null, /* pwd */
|
||||
argv,
|
||||
null, /* envp */
|
||||
launchContext.get_environment(),
|
||||
GLib.SpawnFlags.DO_NOT_REAP_CHILD,
|
||||
() => {
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user