Re: profile sharing and directory service

Doug Turner <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpcom
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Conrad Carlen wrote:

> Consumers of profile data get their file locations through directory 
> service. The provider for the profile-relative data is the profile 
> mgr. There needs to be a way for a consumer of a file location to get 
> a file location specific to its private partition of a profile. One 
> possibility is this: If the directory service key was prefixed by a 
> proc ID string (constant always for that app), say "%Proc:ProgramX%", 
> directory service could separate the given string into the proc ID and 
> the location key. Given these two pieces of data, directory service 
> could QI to (yet another, sorry) nsIDirectoryServiceProvider iface. 
> That provider would return the location for that given app's file or 
> directory.

I am missing what you would have to the directory service would have to 
QI to a new provider interface?  Isn't the proc key enough?

> Yes, it's unfortunate to have another type of 
> nsIDirectoryServiceProvider but, on the other hand, it would allow 
> partitioning of profile date into shared and private data with minimal 
> change to directory service consumers.

Should callers know that they are getting a shared copy?  There are tons 
of places where permissions of certain files are assumed.  What about 
file locking?  

Doug Turner
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.