rancher-desktop icon indicating copy to clipboard operation
rancher-desktop copied to clipboard

Modify `UnixIntegrationManager` so that it modifies symlinks with a target path containing `/opt/rancher-desktop/resources/resources/linux/bin/`

Open adamkpickering opened this issue 2 years ago • 1 comments

Related to #2456.

@himslm01 is getting the following diagnostic error message:

The file ~/.docker/cli-plugins/docker-buildx should be a symlink to ~/.rd/bin/docker-buildx, but points to /opt/rancher-desktop/resources/resources/linux/bin/docker-buildx.

Currently, UnixIntegrationManager only updates a symlink in ~/.docker/cli-plugins when its target path starts with ~/.rd/bin. We need to modify it so that it will also update symlinks whose target path starts with /opt/rancher-desktop/resources/resources/linux/bin/, which appears to be something that RD created in the past (pre-1.3.0 as far as I can tell).

adamkpickering avatar Oct 07 '22 17:10 adamkpickering

Also needs to cover the Darwin scenario:

The file ~/.docker/cli-plugins/docker-buildx should be a symlink to ~/.rd/bin/docker-buildx, but points to /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/bin/docker-buildx.

dalesit avatar Oct 14 '22 16:10 dalesit