Fix iw command by promisifying communicate_utf8_async
Gio.Subprocess.communicate_utf8_async requires explicit promisification via Gio._promisify() to be used with await. Without it, the call fails with "At least 3 arguments required, but only 2 passed", causing silent fallback to unknown WiFi generation on every refresh.
This commit is contained in:
parent
9ee2ef0493
commit
87438d9437
1 changed files with 2 additions and 0 deletions
|
|
@ -8,6 +8,8 @@ import Gio from 'gi://Gio';
|
|||
import GLib from 'gi://GLib';
|
||||
import NM from 'gi://NM';
|
||||
|
||||
Gio._promisify(Gio.Subprocess.prototype, 'communicate_utf8_async', 'communicate_utf8_finish');
|
||||
|
||||
import { parseIwLinkOutput, createEmptyIwLinkInfo } from './wifiGeneration.js';
|
||||
import {
|
||||
type WifiConnectionInfo,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue