diff --git a/pkg/rancher-desktop/main/deploymentProfiles.ts b/pkg/rancher-desktop/main/deploymentProfiles.ts index 453c54cd1e8..ac653637871 100644 --- a/pkg/rancher-desktop/main/deploymentProfiles.ts +++ b/pkg/rancher-desktop/main/deploymentProfiles.ts @@ -43,10 +43,6 @@ export function readDeploymentProfiles(): settings.DeploymentProfileType { defaults: {}, locked: {}, }; - const linuxPaths = { - [paths.deploymentProfileSystem]: ['defaults.json', 'locked.json'], - [paths.deploymentProfileUser]: ['rancher-desktop.defaults.json', 'rancher-desktop.locked.json'], - }; switch (os.platform()) { case 'win32': @@ -84,7 +80,12 @@ export function readDeploymentProfiles(): settings.DeploymentProfileType { } } break; - case 'linux': + case 'linux': { + const linuxPaths = { + [paths.deploymentProfileSystem]: ['defaults.json', 'locked.json'], + [paths.deploymentProfileUser]: ['rancher-desktop.defaults.json', 'rancher-desktop.locked.json'], + }; + for (const configDir in linuxPaths) { const [defaults, locked] = linuxPaths[configDir]; @@ -93,6 +94,7 @@ export function readDeploymentProfiles(): settings.DeploymentProfileType { break; } } + } break; case 'darwin': for (const rootPath of [paths.deploymentProfileSystem, paths.deploymentProfileUser]) {