summaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-electron_lib_common_api_clipboard.ts
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-electron_lib_common_api_clipboard.ts')
-rw-r--r--devel/electron13/files/patch-electron_lib_common_api_clipboard.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-electron_lib_common_api_clipboard.ts b/devel/electron13/files/patch-electron_lib_common_api_clipboard.ts
new file mode 100644
index 000000000000..f80342a37f20
--- /dev/null
+++ b/devel/electron13/files/patch-electron_lib_common_api_clipboard.ts
@@ -0,0 +1,11 @@
+--- electron/lib/common/api/clipboard.ts.orig 2021-04-20 23:32:33 UTC
++++ electron/lib/common/api/clipboard.ts
+@@ -14,7 +14,7 @@ if (process.type === 'renderer') {
+ };
+ };
+
+- if (process.platform === 'linux') {
++ if (process.platform === 'linux' || process.platform === 'freebsd') {
+ // On Linux we could not access clipboard in renderer process.
+ for (const method of Object.keys(clipboard) as (keyof Electron.Clipboard)[]) {
+ clipboard[method] = makeRemoteMethod(method);