Disable Rancher Desktop Telemetry

MichaelMcG
New Contributor III

Hi, 

I have been asked to disable the telemetry on Rancher Desktop for deployment in our fleet, and was hoping someone might have done this, or had some insight as to what would be the right way to do it.

you can pull the settings and i can see the flag i need to change, but my json skills are not my strongpoint...

 

I know this needs to be changed to False

"telemetry": {
"enabled": true
}

https://docs.rancherdesktop.io/references/rdctl-command-reference/#rdctl-or-rdctl-help 

 

Any suggestions would be welcome

1 REPLY 1

skeenan07
New Contributor III

I wrote a script to create a system wide deployment profile (https://docs.rancherdesktop.io/getting-started/deployment/) that sets the default configurations our devs need. You could just create a package that drops the plist, but I like the flexibility of a script. Give this a try.

#!/bin/zsh

writeToPlist () {
    key="${1}"
    type="${2}"
    value="${3}"

    "${PlistBuddy}" "${rancherSettingsPlist}" -c "Add $key $type $value" || \
    "${PlistBuddy}" "${rancherSettingsPlist}" -c "Set $key $value"
}

PlistBuddy="/usr/libexec/PlistBuddy"
rancherSettingsPlist="/Library/Preferences/io.rancherdesktop.profile.defaults.plist"

# Set application settings
writeToPlist ":application:telemetry:enabled" "bool" "false"

# Set version as recommended https://docs.rancherdesktop.io/getting-started/deployment/#version-field
writeToPlist ":version" "integer" "10"

 You could also change the name of the deployment profile to `io.rancherdesktop.profile.locked.plist` to lock in this setting.