From 87438d943712b6a5e60a839323d353f913106163 Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Wed, 18 Feb 2026 01:16:32 +0100 Subject: [PATCH] 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. --- src/wifiInfo.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wifiInfo.ts b/src/wifiInfo.ts index c4c027c..66c8d33 100644 --- a/src/wifiInfo.ts +++ b/src/wifiInfo.ts @@ -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,