diff -r 56cd8111b7f7 -r 41300fa6a67c examples/xml/saxbookmarks/mainwindow.cpp --- a/examples/xml/saxbookmarks/mainwindow.cpp Tue Jan 26 12:42:25 2010 +0200 +++ b/examples/xml/saxbookmarks/mainwindow.cpp Tue Feb 02 00:43:10 2010 +0200 @@ -67,8 +67,11 @@ void MainWindow::open() { #if defined(Q_OS_SYMBIAN) - // Always look for bookmarks on the same drive where the application is installed to. - QString bookmarksFolder = QCoreApplication::applicationFilePath().left(1); + // Look for bookmarks on the same drive where the application is installed to, + // if drive is not read only. QDesktopServices::DataLocation does this check, + // and returns writable drive. + QString bookmarksFolder = + QDesktopServices::storageLocation(QDesktopServices::DataLocation).left(1); bookmarksFolder.append(":/Data/qt/saxbookmarks"); QDir::setCurrent(bookmarksFolder); #endif