0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-10-22 07:44:08 +00:00
Files
termux-packages/x11-packages/thunderbird/0028-prepend-prefix-to-nsXREDirProvider-absolute-paths.patch
Robert Kirkman 750ae3f7cd bump(x11/thunderbird): 140.0
- `0028-fix-headless-mode.patch` has been upstreamed in 3c8eda2af8, so it is no longer necessary in any downstream package
- An error `error: checksum for `remove_dir_all v0.5.3` changed between lock files` began happening, which can be worked around by `0033-remove_dir_all-crate-checksums.patch`.
- It is necessary to increase the size of the swap file yet again. To see previous discussions of this, search for swap file discussions in:
  - https://github.com/termux/termux-packages/pull/23911
  - https://github.com/termux/termux-packages/pull/24860
- closes https://github.com/termux/termux-packages/issues/25244
2025-07-06 16:36:39 -05:00

30 lines
1.3 KiB
Diff

--- a/toolkit/xre/nsXREDirProvider.cpp
+++ b/toolkit/xre/nsXREDirProvider.cpp
@@ -294,7 +294,7 @@ static nsresult GetSystemParentDirectory(nsIFile** aFile) {
# elif defined(__OpenBSD__) || defined(__FreeBSD__)
"/usr/local/lib/mozilla"_ns
# else
- "/usr/lib/mozilla"_ns
+ "@TERMUX_PREFIX@/lib/mozilla"_ns
# endif
;
rv = NS_NewNativeLocalFile(dirname, getter_AddRefs(localDir));
@@ -400,7 +400,7 @@ nsXREDirProvider::GetFile(const char* aProperty, bool* aPersistent,
# if defined(__OpenBSD__) || defined(__FreeBSD__)
static const char* const sysLExtDir = "/usr/local/share/mozilla/extensions";
# else
- static const char* const sysLExtDir = "/usr/share/mozilla/extensions";
+ static const char* const sysLExtDir = "@TERMUX_PREFIX@/share/mozilla/extensions";
# endif
rv = NS_NewNativeLocalFile(nsDependentCString(sysLExtDir),
getter_AddRefs(file));
@@ -413,7 +413,7 @@ nsXREDirProvider::GetFile(const char* aProperty, bool* aPersistent,
#endif
} else if (!strcmp(aProperty, XRE_USER_RUNTIME_DIR)) {
#if defined(XP_UNIX)
- nsPrintfCString path("/run/user/%d/%s/", getuid(), GetAppName());
+ nsPrintfCString path("@TERMUX_PREFIX@/var/run/user/%d/%s/", getuid(), GetAppName());
ToLowerCase(path);
rv = NS_NewNativeLocalFile(path, getter_AddRefs(file));
#endif