2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-20 05:30:11 -07:00
repo/extra/firefox/patches/no-dbus.patch

59 lines
1.9 KiB
Diff
Raw Normal View History

2024-01-31 02:06:29 -07:00
diff --git a/toolkit/components/remote/moz.build b/toolkit/components/remote/moz.build
index 4ac1408..0e84246 100644
--- a/toolkit/components/remote/moz.build
+++ b/toolkit/components/remote/moz.build
@@ -26,7 +26,7 @@ if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
2022-05-05 01:25:58 -06:00
"RemoteUtils.h",
]
2024-01-31 02:06:29 -07:00
CXXFLAGS += CONFIG["MOZ_DBUS_CFLAGS"]
2022-05-05 01:25:58 -06:00
- else:
+ elif CONFIG["MOZ_X11"]:
SOURCES += [
"nsGTKRemoteServer.cpp",
"nsXRemoteClient.cpp",
2024-01-31 02:06:29 -07:00
diff --git a/toolkit/components/remote/nsRemoteService.cpp b/toolkit/components/remote/nsRemoteService.cpp
index 3e8e4b5..ee964b9 100644
--- a/toolkit/components/remote/nsRemoteService.cpp
+++ b/toolkit/components/remote/nsRemoteService.cpp
2022-07-25 11:24:39 -06:00
@@ -6,12 +6,14 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
2022-05-05 01:25:58 -06:00
#ifdef MOZ_WIDGET_GTK
-# ifdef MOZ_ENABLE_DBUS
+# if defined(MOZ_ENABLE_DBUS)
# include "nsDBusRemoteServer.h"
# include "nsDBusRemoteClient.h"
-# else
+# elif defined(MOZ_X11)
# include "nsGTKRemoteServer.h"
# include "nsXRemoteClient.h"
+# else
+# include "nsRemoteClient.h"
# endif
#elif defined(XP_WIN)
# include "nsWinRemoteServer.h"
2024-01-31 02:06:29 -07:00
@@ -101,8 +103,10 @@ RemoteResult nsRemoteService::StartClient(const char* aStartupToken) {
2022-05-05 01:25:58 -06:00
#ifdef MOZ_WIDGET_GTK
# if defined(MOZ_ENABLE_DBUS)
client = MakeUnique<nsDBusRemoteClient>();
2024-01-31 02:06:29 -07:00
-# else
2022-05-05 01:25:58 -06:00
+# elif defined(MOZ_X11)
2024-01-31 02:06:29 -07:00
client = MakeUnique<nsXRemoteClient>();
+# else
2022-05-05 01:25:58 -06:00
+ return REMOTE_NOT_FOUND;
# endif
#elif defined(XP_WIN)
client = MakeUnique<nsWinRemoteClient>();
2024-01-31 02:06:29 -07:00
@@ -145,8 +149,10 @@ void nsRemoteService::StartupServer() {
2022-05-05 01:25:58 -06:00
#ifdef MOZ_WIDGET_GTK
# if defined(MOZ_ENABLE_DBUS)
mRemoteServer = MakeUnique<nsDBusRemoteServer>();
2024-01-31 02:06:29 -07:00
-# else
2022-05-05 01:25:58 -06:00
+# elif defined(MOZ_X11)
2024-01-31 02:06:29 -07:00
mRemoteServer = MakeUnique<nsGTKRemoteServer>();
+# else
2022-05-05 01:25:58 -06:00
+ return;
# endif
#elif defined(XP_WIN)
mRemoteServer = MakeUnique<nsWinRemoteServer>();