From 85d7745fa34d39cd10256baef061f20be3e7f58d Mon Sep 17 00:00:00 2001 From: Aravindh A J Date: Sun, 25 Jan 2026 05:48:38 +0000 Subject: [PATCH] cockpit-desktop: clarify error when cockpit-bridge is missing --- src/ws/cockpit-desktop.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ws/cockpit-desktop.in b/src/ws/cockpit-desktop.in index fbd53ac2d6c4..3ccea5434fa9 100644 --- a/src/ws/cockpit-desktop.in +++ b/src/ws/cockpit-desktop.in @@ -118,6 +118,13 @@ esac detect_browser # start the bridge; this needs to run in the normal user session/namespace +echo "cockpit-desktop: attempting to start cockpit-bridge locally" + +if ! command -v cockpit-bridge >/dev/null 2>&1; then + echo "cockpit-desktop: error: cockpit-bridge was not found." + echo "cockpit-desktop: please install the cockpit package or ensure cockpit-bridge is in your PATH." +fi + coproc ${2:+ssh "$2"} cockpit-bridge trap "kill $COPROC_PID; wait $COPROC_PID || true" EXIT INT QUIT PIPE