From 04aa1916154f3a2c02b01e8f1808d030b2d08bf0 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Wed, 19 Apr 2023 14:07:33 -0400 Subject: [PATCH 1/2] vmware-horizon-client: use Chroot instead of Bubblewrap When connecting, the client only shows a blank screen if run under bubblewrap --- .../networking/remote/vmware-horizon-client/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/remote/vmware-horizon-client/default.nix b/pkgs/applications/networking/remote/vmware-horizon-client/default.nix index a6cd01390b71..34f7f9b22eb9 100644 --- a/pkgs/applications/networking/remote/vmware-horizon-client/default.nix +++ b/pkgs/applications/networking/remote/vmware-horizon-client/default.nix @@ -1,6 +1,6 @@ { stdenv , lib -, buildFHSEnv +, buildFHSEnvChroot , fetchurl , gsettings-desktop-schemas , makeDesktopItem @@ -57,7 +57,7 @@ let ''; }; - vmwareFHSUserEnv = name: buildFHSEnv { + vmwareFHSUserEnv = name: buildFHSEnvChroot { inherit name; runScript = "${vmwareHorizonClientFiles}/bin/${name}_wrapper"; From 5594826e597bf5752f37bae26a9c1af0b4f12d71 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Wed, 19 Apr 2023 14:08:18 -0400 Subject: [PATCH 2/2] vmware-horizon-client: include opensc for smartcard support --- .../networking/remote/vmware-horizon-client/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/networking/remote/vmware-horizon-client/default.nix b/pkgs/applications/networking/remote/vmware-horizon-client/default.nix index 34f7f9b22eb9..6b6e152efab3 100644 --- a/pkgs/applications/networking/remote/vmware-horizon-client/default.nix +++ b/pkgs/applications/networking/remote/vmware-horizon-client/default.nix @@ -5,6 +5,7 @@ , gsettings-desktop-schemas , makeDesktopItem , makeWrapper +, opensc , writeTextDir , configText ? "" }: @@ -53,6 +54,11 @@ let # This library causes the program to core-dump occasionally. Use ours instead. rm -r $out/lib/vmware/view/crtbora + # This opensc library is required to support smartcard authentication during the + # initial connection to Horizon. + mkdir $out/lib/vmware/view/pkcs11 + ln -s ${opensc}/lib/pkcs11/opensc-pkcs11.so $out/lib/vmware/view/pkcs11/libopenscpkcs11.so + ${lib.concatMapStrings wrapBinCommands bins} ''; };