From 3995d2bbc0edacd8de76bc1f7fdf5d8d27bbbb6e Mon Sep 17 00:00:00 2001 From: vmomenv <51269338+vmomenv@users.noreply.github.com> Date: Thu, 12 Mar 2026 06:55:48 +0000 Subject: [PATCH] fix: pass app origin to remove-installed ipc in UninstallConfirmModal When triggering the uninstall process from the uninstall confirmation modal, only the package name string was passed. This caused the backend to default the origin to 'spark', which meant APM applications were incorrectly attempted to be uninstalled using `aptss remove` instead of `apm remove`. This commit changes the `remove-installed` ipc payload in `UninstallConfirmModal.vue` to an object containing both `pkgname` and `origin`, ensuring the backend correctly routes the uninstallation through the APM package manager with `pkexec` when needed. --- src/components/UninstallConfirmModal.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/UninstallConfirmModal.vue b/src/components/UninstallConfirmModal.vue index 4dfcda96..dbb6dc49 100644 --- a/src/components/UninstallConfirmModal.vue +++ b/src/components/UninstallConfirmModal.vue @@ -143,7 +143,10 @@ const confirmUninstall = () => { uninstalling.value = true; logs.value = ["正在请求卸载: " + appPkg.value + "..."]; - window.ipcRenderer.send("remove-installed", appPkg.value); + window.ipcRenderer.send("remove-installed", { + pkgname: appPkg.value, + origin: props.app?.origin || "spark", + }); }; // Listeners