Closed Bug 394765 Opened 18 years ago Closed 18 years ago

Add "common app data directory" to nsDirectoryService

Categories

(Core :: XPCOM, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: jwkbugzilla, Unassigned)

References

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
Currently we can get "\Document and Settings\<username>\Application Data" or "\Document and Settings\<username>\Local Settings\Application Data", there is no way to get to "\Document and Settings\AllUsers\Application Data". The patch adds this directory to nsDirectoryService as CmAppData.
Attachment #279467 - Flags: review?(benjamin)
What do you want to do with this directory? I can understand, perhaps, \Documents and Settings\All Users\Desktop or quicklaunch or start menu, but the Application Data subdirectory?
It is for TomTom HOME - some files that are downloaded from the Internet should be accessible to all users. The default install location is application's install directory, but since this one isn't always writable we need a fallback location.
Comment on attachment 279467 [details] [diff] [review] Patch All Users is also not always writable: it's typically writable only by administrators. I don't think I want to take this patch: you can pretty easily include an XPCOM component in your app to do the same thing.
Attachment #279467 - Flags: review?(benjamin) → review-
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WONTFIX
Personally, I think that any such "symbolic" directory should be resolvable in XULRunner - otherwise, it's almost impossible to get there from JS code, in case you need it for whatever reason. For TomTom HOME, we'll probably just use the profile for now.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: