mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
992224f2e8
Generate a synced read-aloud EPUB from a book's EPUB and audiobook through an optional STAlign worker (Docker on CPU, or native with MLX on Apple Silicon), with review, re-sync, replace in place, restart recovery and live progress on the Files tab. Book details also stack the ebook and audiobook covers when both exist. See docs/READ_ALOUD.md.
15 lines
631 B
Diff
15 lines
631 B
Diff
diff --git a/dist/utilities/FileSystem.js b/dist/utilities/FileSystem.js
|
|
index b8a491d..0e9019f 100644
|
|
--- a/dist/utilities/FileSystem.js
|
|
+++ b/dist/utilities/FileSystem.js
|
|
@@ -11,7 +11,8 @@ export function getAppDataDir(appName) {
|
|
dataDir = join(homeDir, "Library", "Application Support", appName);
|
|
}
|
|
else if (platform === "linux") {
|
|
- dataDir = join(homeDir, ".local", "share", appName);
|
|
+ const dataHome = process.env["XDG_DATA_HOME"] ?? join(homeDir, ".local", "share");
|
|
+ dataDir = join(dataHome, appName);
|
|
}
|
|
else {
|
|
throw new Error(`Unsupport platform ${platform}`);
|