From 0bac66a5c92326f29c79847fa6e16c20298959b1 Mon Sep 17 00:00:00 2001 From: Jin Liu Date: Wed, 5 Aug 2026 11:37:37 +0800 Subject: [PATCH] fix(phone-connect): use detached version of runAsync() to launch file browser Otherwise, it will be closed after the 5 seconds timeout. --- phone-connect/plugin.toml | 2 +- phone-connect/service.luau | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phone-connect/plugin.toml b/phone-connect/plugin.toml index 1575077e..784b1150 100644 --- a/phone-connect/plugin.toml +++ b/phone-connect/plugin.toml @@ -12,7 +12,7 @@ id = "icefish/phone-connect" name = "Phone Connect" -version = "0.1.1" +version = "0.1.2" plugin_api = 16 author = "icefish" license = "MIT" diff --git a/phone-connect/service.luau b/phone-connect/service.luau index 3588e43b..d23f222e 100644 --- a/phone-connect/service.luau +++ b/phone-connect/service.luau @@ -603,7 +603,7 @@ local function handleCommand(cmd) local first = (res.stdout or ""):match("'([^']+)'") if first then dirPath = first end end - noctalia.runAsync("xdg-open " .. shellQuote(dirPath), function() end) + noctalia.runAsync("xdg-open " .. shellQuote(dirPath)) noctalia.notify(t("notify.opening_browser"), dirPath) end) end)