aboutsummaryrefslogtreecommitdiff
path: root/devel/electron29/files/patch-remoting_host_ipc__constants.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron29/files/patch-remoting_host_ipc__constants.cc')
-rw-r--r--devel/electron29/files/patch-remoting_host_ipc__constants.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron29/files/patch-remoting_host_ipc__constants.cc b/devel/electron29/files/patch-remoting_host_ipc__constants.cc
new file mode 100644
index 000000000000..dc885465c844
--- /dev/null
+++ b/devel/electron29/files/patch-remoting_host_ipc__constants.cc
@@ -0,0 +1,20 @@
+--- remoting/host/ipc_constants.cc.orig 2023-02-01 18:43:24 UTC
++++ remoting/host/ipc_constants.cc
+@@ -17,7 +17,7 @@ namespace remoting {
+
+ namespace {
+
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+
+ #if !defined(NDEBUG)
+ // Use a different IPC name for debug builds so that we can run the host
+@@ -68,7 +68,7 @@ GetChromotingHostServicesServerName() {
+ static const base::NoDestructor<mojo::NamedPlatformChannel::ServerName>
+ server_name(
+ named_mojo_ipc_server::WorkingDirectoryIndependentServerNameFromUTF8(
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ // Linux host creates the socket file in /tmp, and it won't be
+ // deleted until reboot, so we put username in the path in case
+ // the user switches the host owner.