Skip to content

cockpit-desktop: check if cockpit-bridge exists#23144

Open
jelly wants to merge 1 commit into
cockpit-project:mainfrom
jelly:cockpit-desktop-bridge-check
Open

cockpit-desktop: check if cockpit-bridge exists#23144
jelly wants to merge 1 commit into
cockpit-project:mainfrom
jelly:cockpit-desktop-bridge-check

Conversation

@jelly
Copy link
Copy Markdown
Member

@jelly jelly commented Apr 16, 2026

Check it upfront so the user does not have to wade through a wall of error messages. Nor does the opened browser so an error message but just "Internal error in login process" if cockpit-ws is installed locally.

Fixes: #20766

Check it upfront so the user does not have to wade through a wall of
error messages. Nor does the opened browser so an error message but just
"Internal error in login process" if cockpit-ws is installed locally.

Fixes: cockpit-project#20766
Comment thread src/ws/cockpit-desktop.in
Comment on lines +108 to +111
if ! ${2:+ssh "$2"} command -v cockpit-bridge >/dev/null 2>&1; then
echo "cockpit-bridge is not installed${2:+ on $2}" >&2
exit 1
fi
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, but this sucks a bit when using ssh, no? It makes two connections, with all the overhead of key unlocking, password entry, possible 2FA, etc. Can we perhaps run a shell script on the remote side which handles this more gracefullY?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, btw we don't have a desktop file for this? Or do we as if we do this is all kinda moot.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only .desktop file I'm aware of is for sub-man-cockpit, that's shipped in RHEL desktop. Of course without ssh.

Alternatively, only do this check if $ssh is empty? That at least makes it simpler for the local case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make cockpit-desktop error message of bridge not found easier to understand

2 participants