From 11e330e09d919c521e3a211d58a0dd90ad9deb7b Mon Sep 17 00:00:00 2001 From: Nydragon <contact@ccnlc.eu> Date: Sun, 9 Jun 2024 01:39:22 +0900 Subject: [PATCH] fix: force calibre to run under XWayland --- home/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/home/default.nix b/home/default.nix index 9a2a944..b188704 100644 --- a/home/default.nix +++ b/home/default.nix @@ -81,7 +81,6 @@ loupe gnome.seahorse gimp - calibre vlc thunderbird keepassxc @@ -115,7 +114,15 @@ nixedit ]; in - scripts ++ pk; + scripts + ++ pk + ++ [ + (pkgs.calibre.overrideAttrs (old: { + postInstall = '' + wrapProgram $out/bin/calibre --prefix QT_QPA_PLATFORM = "xcb" + ''; + })) + ]; sessionVariables = { EDITOR = "nvim";