Open jrjsmrtn opened 2 years ago
podman-macos cannot detect MacPorts' podman, as it's installed in /opt/local/bin.
podman-macos
podman
/opt/local/bin
This patch adds the MacPorts bin path:
diff --git a/Podman/Interop/PMManager.m b/Podman/Interop/PMManager.m index 97ebd5a..b9f3964 100644 --- a/Podman/Interop/PMManager.m +++ b/Podman/Interop/PMManager.m @@ -106,13 +106,16 @@ } } - // Test for homebrew default paths as a last resort... - NSArray *homebrewDefaultPaths = @[ + // Test for MacPorts/Homebrew default paths as a last resort... + NSArray *packageManagersDefaultPaths = @[ + // MacPorts + @"/opt/local/bin", + // Homebrew @"/usr/local/bin", @"/opt/homebrew/bin", ]; - for (NSString *base in homebrewDefaultPaths) { + for (NSString *base in packageManagersDefaultPaths) { NSString *target = [base stringByAppendingPathComponent:appName]; if ([[NSFileManager defaultManager] isExecutableFileAtPath:target]) { return target;
+1
podman-macos
cannot detect MacPorts'podman
, as it's installed in/opt/local/bin
.This patch adds the MacPorts bin path: