From db3e4636283b31ec2ad0dc84232cd5ae338fc050 Mon Sep 17 00:00:00 2001 From: chfour Date: Mon, 5 May 2025 18:46:55 +0200 Subject: [PATCH] add signal-desktop and its patch so it works on wayland should probably do this in a better way --- users/chfour/home.nix | 4 ++++ users/chfour/signal-desktop-show-window.patch | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 users/chfour/signal-desktop-show-window.patch diff --git a/users/chfour/home.nix b/users/chfour/home.nix index 0e1a39d..f2bff02 100644 --- a/users/chfour/home.nix +++ b/users/chfour/home.nix @@ -127,6 +127,10 @@ in { libreoffice keepassxc vesktop + (signal-desktop.overrideAttrs (old: { + # yea + patches = (old.patches or []) ++ [ ./signal-desktop-show-window.patch ]; + })) helvum inkscape gimp blender diff --git a/users/chfour/signal-desktop-show-window.patch b/users/chfour/signal-desktop-show-window.patch new file mode 100644 index 0000000..fe58ef5 --- /dev/null +++ b/users/chfour/signal-desktop-show-window.patch @@ -0,0 +1,13 @@ +diff --git a/asar-contents/app/main.js b/asar-contents/app/main.js +index 627a1b5..2fa0cd0 100644 +--- a/asar-contents/app/main.js ++++ b/asar-contents/app/main.js +@@ -501,7 +501,7 @@ async function createWindow() { + const width = windowConfig ? Math.min(windowConfig.width, maxWidth) : DEFAULT_WIDTH; + const height = windowConfig ? Math.min(windowConfig.height, maxHeight) : DEFAULT_HEIGHT; + const windowOptions = { +- show: false, ++ show: true, + width, + height, + minWidth: MIN_WIDTH, -- 2.51.2