2
0
mirror of https://codeberg.org/kiss-community/repo synced 2025-01-07 10:14:55 -07:00
repo/extra/firefox/patches/no-dbus.patch

55 lines
1.8 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
2024-11-25 19:49:15 -07:00
index 46860f6..66ba453 100644
2024-01-31 02:06:29 -07:00
--- a/toolkit/components/remote/nsRemoteService.cpp
+++ b/toolkit/components/remote/nsRemoteService.cpp
2024-11-25 19:49:15 -07:00
@@ -7,10 +7,10 @@
2022-05-05 01:25:58 -06:00
2024-11-25 19:49:15 -07:00
#include "nsRemoteClient.h"
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"
# endif
2024-11-25 19:49:15 -07:00
@@ -198,8 +198,10 @@ nsresult nsRemoteService::SendCommandLine(const nsACString& aProfile,
2022-05-05 01:25:58 -06:00
#ifdef MOZ_WIDGET_GTK
# if defined(MOZ_ENABLE_DBUS)
2024-10-01 18:37:54 -06:00
client = MakeUnique<nsDBusRemoteClient>(mStartupToken);
2024-01-31 02:06:29 -07:00
-# else
2022-05-05 01:25:58 -06:00
+# elif defined(MOZ_X11)
2024-10-01 18:37:54 -06:00
client = MakeUnique<nsXRemoteClient>(mStartupToken);
2024-01-31 02:06:29 -07:00
+# else
2024-10-01 18:37:54 -06:00
+ return NS_ERROR_NOT_AVAILABLE;
2022-05-05 01:25:58 -06:00
# endif
#elif defined(XP_WIN)
client = MakeUnique<nsWinRemoteClient>();
2024-11-25 19:49:15 -07:00
@@ -260,8 +262,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>();