Since this seems like a preventable issue for me, I wanted to disable the Set As Desktop Background… option in Firefox.
That was not as straightforward as I thought it would be:
Settings: nope
about:config: nope
userChrome.css: The Internet, and LLMs tell you yes, but actually nope
What you have to do is create a policies.json file and put that somewhere… Here is the deeply buried site from Mozilla about that. There you will find where to put it and all the options.
For this problem a short policies.json with the following content is enough:
{"policies":{"DisableSetDesktopBackground":true}}
Why did I do this in the middle of the night instead of browsing ich_iel or I dunno sleeping. Who knows…
Instead of locking down the the ability to set the wallpaper via Firefox, just set a static image as the wallpaper via GPO. A company logo or something. Then it will apply at every restart.
In a corporate environment where you care about such things, you really want to disable the functionality of the user setting the background in the operating system, not in a specific application. Otherwise, you’re going to have to track down every application that includes this functionality, figure out how to disable it it in that application, and find a way to apply that change to every PC. (Microsoft’s Photos app, for example, can set pictures as either background or lock screen.)
Since this seems like a preventable issue for me, I wanted to disable the Set As Desktop Background… option in Firefox.
That was not as straightforward as I thought it would be:
What you have to do is create a
policies.json
file and put that somewhere…Here is the deeply buried site from Mozilla about that. There you will find where to put it and all the options.
For this problem a short
policies.json
with the following content is enough:{ "policies": { "DisableSetDesktopBackground": true } }
Why did I do this in the middle of the night instead of browsing ich_iel or I dunno sleeping. Who knows…
Instead of locking down the the ability to set the wallpaper via Firefox, just set a static image as the wallpaper via GPO. A company logo or something. Then it will apply at every restart.
In a corporate environment where you care about such things, you really want to disable the functionality of the user setting the background in the operating system, not in a specific application. Otherwise, you’re going to have to track down every application that includes this functionality, figure out how to disable it it in that application, and find a way to apply that change to every PC. (Microsoft’s Photos app, for example, can set pictures as either background or lock screen.)