From 6c5e7c1e92ed19cc6069081c8e17cd6c799a0e07 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Fri, 18 Oct 2019 16:09:30 -0500 Subject: [PATCH] unifying: notify users to replug when using dfu control (Fixes: #1383) --- plugins/unifying/fu-unifying-peripheral.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/unifying/fu-unifying-peripheral.c b/plugins/unifying/fu-unifying-peripheral.c index e410b8b35..37e1101b4 100644 --- a/plugins/unifying/fu-unifying-peripheral.c +++ b/plugins/unifying/fu-unifying-peripheral.c @@ -638,7 +638,13 @@ fu_unifying_peripheral_detach (FuDevice *device, GError **error) return FALSE; } fu_device_add_flag (device, FWUPD_DEVICE_FLAG_WAIT_FOR_REPLUG); - return TRUE; + g_set_error (error, + FWUPD_ERROR, + FWUPD_ERROR_NEEDS_USER_ACTION, + "%s needs to be manually restarted to complete the update." + "Please unplug and reconnect the device and re-run the update", + fu_device_get_name (device)); + return FALSE; } /* this can reboot all by itself */