зеркало из https://github.com/mozilla/gecko-dev.git
bug=23157
r=dougt, Conrad Carlen a=dougt, Conrad Carlen Use Moz_BinDirectory instead of OS_CurrentProcessDirectory to allow embedding apps to use mozilla.
This commit is contained in:
Родитель
bde3bda0cb
Коммит
deeefe08ac
|
@ -299,8 +299,8 @@ static void GetDefaultUserProfileRoot(nsFileSpec& outSpec)
|
||||||
cwd.CreateDir();
|
cwd.CreateDir();
|
||||||
|
|
||||||
#elif defined(XP_PC)
|
#elif defined(XP_PC)
|
||||||
// set its directory an aunt of the executable.
|
// set its directory an aunt of the moz bin directory
|
||||||
nsSpecialSystemDirectory cwd(nsSpecialSystemDirectory::OS_CurrentProcessDirectory);
|
nsSpecialSystemDirectory cwd(nsSpecialSystemDirectory::Moz_BinDirectory);
|
||||||
|
|
||||||
// Users50 directory is kept 1 level above the executable directory.
|
// Users50 directory is kept 1 level above the executable directory.
|
||||||
cwd.GetParent(cwd);
|
cwd.GetParent(cwd);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче