summaryrefslogtreecommitdiff
path: root/net-im/signal-desktop/files/patch-app_main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/signal-desktop/files/patch-app_main.ts')
-rw-r--r--net-im/signal-desktop/files/patch-app_main.ts28
1 files changed, 27 insertions, 1 deletions
diff --git a/net-im/signal-desktop/files/patch-app_main.ts b/net-im/signal-desktop/files/patch-app_main.ts
index abd04e0d996e..80c9aadd0f9c 100644
--- a/net-im/signal-desktop/files/patch-app_main.ts
+++ b/net-im/signal-desktop/files/patch-app_main.ts
@@ -1,6 +1,15 @@
--- app/main.ts.orig 2023-10-19 19:29:53 UTC
+++ app/main.ts
-@@ -648,7 +648,7 @@ if (OS.isWindows()) {
+@@ -211,7 +211,7 @@ const DISABLE_GPU =
+ };
+
+ const DISABLE_GPU =
+- OS.isLinux() && !process.argv.some(arg => arg === '--enable-gpu');
++ (OS.isLinux() || OS.isFreeBSD()) && !process.argv.some(arg => arg === '--enable-gpu');
+
+ const DISABLE_IPV6 = process.argv.some(arg => arg === '--disable-ipv6');
+ const FORCE_ENABLE_CRASH_REPORTS = process.argv.some(
+@@ -628,7 +628,7 @@ if (OS.isWindows()) {
if (OS.isWindows()) {
windowIcon = join(__dirname, '../build/icons/win/icon.ico');
@@ -9,3 +18,20 @@
windowIcon = join(__dirname, '../images/signal-logo-desktop-linux.png');
} else {
windowIcon = join(__dirname, '../build/icons/png/512x512.png');
+@@ -1665,6 +1665,7 @@ function getSQLKey(): string {
+ function getSQLKey(): string {
+ let update = false;
+ const isLinux = OS.isLinux();
++ const isFreeBSD = OS.isFreeBSD();
+ const legacyKeyValue = userConfig.get('key');
+ const modernKeyValue = userConfig.get('encryptedKey');
+ const previousBackend = isLinux
+@@ -2618,7 +2619,7 @@ ipc.on('draw-attention', () => {
+ return;
+ }
+
+- if (OS.isWindows() || OS.isLinux()) {
++ if (OS.isWindows() || OS.isLinux() || OS.isFreeBSD()) {
+ mainWindow.flashFrame(true);
+ }
+ });