mozilla / policy-templates

Policy Templates for Firefox
Mozilla Public License 2.0
1.15k stars 408 forks source link

How to disable "Restart FF after OS restart" banner on first start #1146

Open htcfreek opened 2 months ago

htcfreek commented 2 months ago

Ho can I disable the "Open Firefox after each OS restart. Now you can configure Firefox to open automatically on restarting your device." banner that appears after updating to the latest Firefox ESR (128.*) and on first startup of Fifrefox?

image

mkaply commented 2 months ago

browser.startup.windowsLaunchOnLogin.disableLaunchOnLoginPrompt for the prompt browser.startup.windowsLaunchOnLogin.enabled for the feature.

You can use the preference policy to set it:

https://mozilla.github.io/policy-templates/#preferences

htcfreek commented 2 months ago

@mkaply Thank you so much. I try this tomorrow.

htcfreek commented 2 months ago

@mkaply Only for clarification ...

browser.startup.windowsLaunchOnLogin.disableLaunchOnLoginPrompt for the prompt

Setting this to true prevents the banner from opening.

browser.startup.windowsLaunchOnLogin.enabled for the feature.

Setting this to true does nothing. Setting this to false tells FF that this feature is not available/supported and hides it from the ui. And this entry does not affect the setting in preferences so I can not enable this feature by this preference?

mkaply commented 2 months ago

Do you want to enable the feature?

htcfreek commented 2 months ago

Setting this to true does nothing. Setting this to false tells FF that this feature is not available/supported and hides it from the ui. And this entry does not affect the setting in preferences so I can not enable this feature by this preference?

No I don't like to enable it. But I saw that browser.startup.windowsLaunchOnLogin.enabled does not enable/disable (on/off) the feature. Instead it hides the feature from settings ui. So I imagine that there is a different preference for enabling/disabling (on/off) or it depends on something inside Windows Registry.

mkaply commented 2 months ago

Yeah, there is no pref to control the feature. It's done in the registry from what I can tell.