[app] Fixed ZLibrary::ourApplicationDirectory

It wasn't pointing where FBReader code was expecting it to point.
Particularly, FBReader wasn't finding format-specific XML entities.
This commit is contained in:
Slava Monich 2015-12-14 12:18:22 +03:00
parent 4704c68caf
commit e3fc9982c6

View file

@ -118,7 +118,6 @@ bool ZLibrary::init(int& aArgc, char** &aArgv)
if (slash) {
slash[0] = 0;
HDEBUG("app dir" << info.dli_fname);
ourApplicationDirectory = info.dli_fname;
slash = (char*)strrchr(info.dli_fname, '/');
if (slash) {
slash[0] = 0;
@ -135,9 +134,9 @@ bool ZLibrary::init(int& aArgc, char** &aArgv)
((std::string&)BaseDirectory) = rootDir;
ourApplicationName = BOOKS_APP_NAME;
ourZLibraryDirectory = BaseDirectory + BOOKS_DATA_DIR;
ourApplicationDirectory = BaseDirectory + BOOKS_DATA_ROOT;
ourImageDirectory = BaseDirectory + BOOKS_ICONS_DIR;
ourDefaultFilesPathPrefix = ourZLibraryDirectory + "/";
ourApplicationDirectory = ourZLibraryDirectory;
ourApplicationImageDirectory = ourImageDirectory;
ourApplicationWritableDirectory =
(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) +