Skip to content

Commit 97716f5

Browse files
committed
podman-desktop: add post-install script to disable telemetry
Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>
1 parent 9d87867 commit 97716f5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bucket/podman-desktop.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@
2222
]
2323
}
2424
},
25+
"post_install": [
26+
"# https://github.com/podman-desktop/podman-desktop/blob/main/website/docs/configuration/settings-reference.md",
27+
"$settingsPath = Join-Path $env:USERPROFILE '\\.local\\share\\containers\\podman-desktop\\configuration\\settings.json'",
28+
"if (-not (Test-Path $settingsPath)) {",
29+
" New-Item -ItemType Directory -Path (Split-Path $settingsPath) -Force | Out-Null",
30+
" $defaultSettings = '{\"telemetry.enabled\":false,\"telemetry.check\":true,\"preferences.update.reminder\":\"never\"}'",
31+
" $defaultSettings | Out-File -FilePath $settingsPath -Encoding UTF8",
32+
"}"
33+
],
2534
"shortcuts": [
2635
[
2736
"Podman Desktop.exe",

0 commit comments

Comments
 (0)