diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2011-10-17 15:47:42 +0100 |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2011-10-17 15:56:45 +0100 |
commit | 001c01e91d9c6cc724a374fcb8371a0551b21958 (patch) | |
tree | 24d734374adf5329fb0d31e4204629fcac2422be /src | |
parent | 5ad1d248aa02eb30dd4699b071f56fcef1412c94 (diff) |
Symbian - Change working directory of applications in ROM
Working directory (as opposed to applicationDirPath) was
on the Z drive before, change it to be the same.
Task-Number: QTBUG-22024
Reviewed-By: mread
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/kernel/qcore_symbian_p.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/corelib/kernel/qcore_symbian_p.cpp b/src/corelib/kernel/qcore_symbian_p.cpp index 57ae2af579..4f953a7df1 100644 --- a/src/corelib/kernel/qcore_symbian_p.cpp +++ b/src/corelib/kernel/qcore_symbian_p.cpp @@ -121,18 +121,17 @@ public: TInt err = iFs.CreatePrivatePath(sysdrive); if (err != KErrNone && err != KErrAlreadyExists) qWarning("Failed to create private path on system drive."); - //BC with 4.7: set working directory to same drive as application TFileName pfn = RProcess().FileName(); TInt drive; if (pfn.Length() > 0 && iFs.CharToDrive(pfn[0], drive) == KErrNone) { - // for system drive or rom based apps, leave the path on system drive + //BC with 4.7: create private path on application drive (except rom or system drive which is done above) if (drive != sysdrive && drive != EDriveZ) { err = iFs.CreatePrivatePath(drive); - if (err == KErrNone || err == KErrAlreadyExists) - iFs.SetSessionToPrivate(drive); - else + if (err != KErrNone && err != KErrAlreadyExists) qWarning("Failed to create private path on application drive."); } + //BC with 4.7: set working directory to same drive as application + iFs.SetSessionToPrivate(drive); } } |