mirror of
https://github.com/termux/termux-packages.git
synced 2025-05-31 12:52:11 +00:00
- Fixes #24070 - makes the `mozconfig.cfg`, `build.sh` and patches of `thunderbird` very similar to `firefox`, except for places where `thunderbird` is different - `disable-systray-x86_64.patch`: fixes the build of `thunderbird` 136.0.1 for x86_64 Termux specifically. has been tested at runtime on a bare metal 64-bit Android-x86 device, and behaves as expected (uniform behavior with other architectures of Termux `thunderbird` 136.0.1) - `toolbar-based-custom-compose-window-width-for-ralfwerner.patch`: hardcoded custom dimensions of the edit window formatting toolbar to provide a workaround for edit window minimum text wrapping width high-dpi-scaling low-resolution situations in HTML mode while preserving the formatting toolbar functionality - `icu-22132.patch`: fixes a bug in `libicu` that has been happening for a long time, which causes these features of `thunderbird` to begin functioning: - Search Bar - Address Book - Customize Toolbars - Calendar - Tasks - Chat - Settings Button - Hamburger Button
32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
Fixes a crash in the command "firefox -headless" when run with no X11 server present
|
|
in all distros when firefox was built with the edge case intersection of:
|
|
with MOZ_HAS_REMOTE, with MOZ_X11, without MOZ_ENABLE_DBUS and without MOZ_WAYLAND
|
|
|
|
as described here https://github.com/termux/termux-packages/issues/22286
|
|
and here https://bugzilla.mozilla.org/show_bug.cgi?id=1946405
|
|
|
|
--- a/toolkit/components/remote/nsGTKRemoteServer.cpp
|
|
+++ b/toolkit/components/remote/nsGTKRemoteServer.cpp
|
|
@@ -18,9 +18,7 @@
|
|
|
|
#include "nsGTKToolkit.h"
|
|
|
|
-#ifdef MOZ_WAYLAND
|
|
-# include "mozilla/WidgetUtilsGtk.h"
|
|
-#endif
|
|
+#include "mozilla/WidgetUtilsGtk.h"
|
|
|
|
nsresult nsGTKRemoteServer::Startup(const char* aAppName,
|
|
const char* aProfileName) {
|
|
@@ -36,6 +34,10 @@ nsresult nsGTKRemoteServer::Startup(const char* aAppName,
|
|
}
|
|
#endif
|
|
|
|
+ if (!mozilla::widget::GdkIsX11Display()) {
|
|
+ return NS_ERROR_FAILURE;
|
|
+ }
|
|
+
|
|
XRemoteBaseStartup(aAppName, aProfileName);
|
|
|
|
mServerWindow = gtk_invisible_new();
|