[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:
parent
4704c68caf
commit
e3fc9982c6
1 changed files with 1 additions and 2 deletions
|
@ -118,7 +118,6 @@ bool ZLibrary::init(int& aArgc, char** &aArgv)
|
||||||
if (slash) {
|
if (slash) {
|
||||||
slash[0] = 0;
|
slash[0] = 0;
|
||||||
HDEBUG("app dir" << info.dli_fname);
|
HDEBUG("app dir" << info.dli_fname);
|
||||||
ourApplicationDirectory = info.dli_fname;
|
|
||||||
slash = (char*)strrchr(info.dli_fname, '/');
|
slash = (char*)strrchr(info.dli_fname, '/');
|
||||||
if (slash) {
|
if (slash) {
|
||||||
slash[0] = 0;
|
slash[0] = 0;
|
||||||
|
@ -135,9 +134,9 @@ bool ZLibrary::init(int& aArgc, char** &aArgv)
|
||||||
((std::string&)BaseDirectory) = rootDir;
|
((std::string&)BaseDirectory) = rootDir;
|
||||||
ourApplicationName = BOOKS_APP_NAME;
|
ourApplicationName = BOOKS_APP_NAME;
|
||||||
ourZLibraryDirectory = BaseDirectory + BOOKS_DATA_DIR;
|
ourZLibraryDirectory = BaseDirectory + BOOKS_DATA_DIR;
|
||||||
ourApplicationDirectory = BaseDirectory + BOOKS_DATA_ROOT;
|
|
||||||
ourImageDirectory = BaseDirectory + BOOKS_ICONS_DIR;
|
ourImageDirectory = BaseDirectory + BOOKS_ICONS_DIR;
|
||||||
ourDefaultFilesPathPrefix = ourZLibraryDirectory + "/";
|
ourDefaultFilesPathPrefix = ourZLibraryDirectory + "/";
|
||||||
|
ourApplicationDirectory = ourZLibraryDirectory;
|
||||||
ourApplicationImageDirectory = ourImageDirectory;
|
ourApplicationImageDirectory = ourImageDirectory;
|
||||||
ourApplicationWritableDirectory =
|
ourApplicationWritableDirectory =
|
||||||
(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) +
|
(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) +
|
||||||
|
|
Loading…
Reference in a new issue