From 0ac48ac9327cd30cbb2c9301806df409c5d6e4b8 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sat, 24 Dec 2022 22:46:53 +0800 Subject: [PATCH] cinnamon.cinnamon-screensaver: Fix crash with virtual keyboard Caribou.KeyboardModel is also used here, so we apply the same fix for cinnamon-common to get rid of a crash. --- pkgs/desktops/cinnamon/cinnamon-screensaver/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/desktops/cinnamon/cinnamon-screensaver/default.nix b/pkgs/desktops/cinnamon/cinnamon-screensaver/default.nix index dca6169b0da5..981b6a5d4578 100644 --- a/pkgs/desktops/cinnamon/cinnamon-screensaver/default.nix +++ b/pkgs/desktops/cinnamon/cinnamon-screensaver/default.nix @@ -93,6 +93,13 @@ stdenv.mkDerivation rec { sed "s|/usr/share/locale|/run/current-system/sw/share/locale|g" -i ./src/cinnamon-screensaver-main.py ''; + preFixup = '' + # https://github.com/NixOS/nixpkgs/issues/101881 + gappsWrapperArgs+=( + --prefix XDG_DATA_DIRS : "${gnome.caribou}/share" + ) + ''; + meta = with lib; { homepage = "https://github.com/linuxmint/cinnamon-screensaver"; description = "The Cinnamon screen locker and screensaver program";