Closed Bug 820803 Opened 13 years ago Closed 13 years ago

Introduce build/custom-settings.json, similar to custom-prefs.js but for settings

Categories

(Firefox OS Graveyard :: Gaia, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(1 file)

As for preferences, we need to customize settings for development or for building custom images. For now, we only support adding our own preferences through build/custom-prefs.js file. But in some cases, we need to tweak settings, like in bug 818884. Here is a patch that search for build/custom-settings.json file and if exists, read it as JSON dictionnary and override default settings. This file looks like this: { "devtools.debugger.remote-enabled": true }
Attached file Pull request 6974 —
Assignee: nobody → poirot.alex
Attachment #691308 - Flags: review?(21)
Blocks: 818884
Comment on attachment 691308 [details] Pull request 6974 Very useful, thanks!
Attachment #691308 - Flags: review?(21) → review+
Comment on attachment 691308 [details] Pull request 6974 NOTE: If blocking-basecamp+ is set, just land it for now. [Approval Request Comment] Bug caused by (feature/regressing bug #): User impact if declined: Testing completed: Tested with and without this file, updated .gitignore in order to prevent it to be landed by error. Tested with wrong JSON syntax too, display meaningfull message. Risk to taking this patch (and alternatives if risky): Low risk, can only break itself as it is encapsulated in try/catch statements.
Attachment #691308 - Flags: approval-gaia-master?(21)
Comment on attachment 691308 [details] Pull request 6974 That will make dev's life easier! Thanks.
Attachment #691308 - Flags: approval-gaia-master?(21) → approval-gaia-master+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: