diff --git a/pkg/rancher-desktop/backend/kubeconfig.ts b/pkg/rancher-desktop/backend/kubeconfig.ts index 11f57b5021c..82dee70b0d1 100644 --- a/pkg/rancher-desktop/backend/kubeconfig.ts +++ b/pkg/rancher-desktop/backend/kubeconfig.ts @@ -125,7 +125,8 @@ export async function getKubeConfigPaths(): Promise { if (process.env.KUBECONFIG && process.env.KUBECONFIG.length > 0) { const results: string[] = []; - for (const filePath of process.env.KUBECONFIG.split(path.delimiter)) { + const delimiter = os.platform() === 'win32' ? ';' : ':'; + for (const filePath of process.env.KUBECONFIG.split(delimiter)) { if (await hasAccess(filePath)) { results.push(filePath); }