Closed Bug 746121 Opened 13 years ago Closed 13 years ago

Updating the DirectoryProvider to look for user.js in /data/local on B2G phones

Categories

(Firefox OS Graveyard :: General, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
DeveloperPhone

People

(Reporter: etienne, Assigned: etienne)

Details

Attachments

(1 file, 1 obsolete file)

We're already doing this of the OfflineCache and webapps dir. This allows us to put everything in place when doing a make install-gaia even if the profile dir isn't created yet (on a first install). The user.js is generated by the Gaia makefile based on the various app manifests.
Attached patch Patch proposal (obsolete) — Splinter Review
Assignee: nobody → etienne
Attachment #615693 - Flags: review?(21)
Can you rename OFFLINE_PROFILE_DIR to LOCAL_DIR. It seems like everybody use it and it does not make sense to keep the name as if. Can you test your change with |GAIA_DOMAIN=localhost.org make && GAIA_DOMAIN=locahost.org make install-gaia| on the device and see if it works?
Attached patch Patch v2Splinter Review
Attachment #615693 - Attachment is obsolete: true
Attachment #615693 - Flags: review?(21)
Attachment #615721 - Flags: review?(21)
(In reply to Vivien Nicolas (:vingtetun) from comment #2) > Can you test your change with |GAIA_DOMAIN=localhost.org make && > GAIA_DOMAIN=locahost.org make install-gaia| on the device and see if it > works? Yes it works!
Comment on attachment 615721 [details] [diff] [review] Patch v2 Review of attachment 615721 [details] [diff] [review]: ----------------------------------------------------------------- ::: b2g/components/DirectoryProvider.js @@ +21,5 @@ > QueryInterface: XPCOMUtils.generateQI([Ci.nsIDirectoryServiceProvider]), > > getFile: function dp_getFile(prop, persistent) { > #ifdef MOZ_WIDGET_GONK > + let localProps = ["cachePDir", "webappsDir", "PrefD"]; Did you mean "ProfD"?
(In reply to Philipp von Weitershausen [:philikon] from comment #7) > Comment on attachment 615721 [details] [diff] [review] > Patch v2 > > Review of attachment 615721 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: b2g/components/DirectoryProvider.js > @@ +21,5 @@ > > QueryInterface: XPCOMUtils.generateQI([Ci.nsIDirectoryServiceProvider]), > > > > getFile: function dp_getFile(prop, persistent) { > > #ifdef MOZ_WIDGET_GONK > > + let localProps = ["cachePDir", "webappsDir", "PrefD"]; > > Did you mean "ProfD"? Don't think so: http://mxr.mozilla.org/mozilla-central/source/xpcom/io/nsAppDirectoryServiceDefs.h#96
Status: ASSIGNED → 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: