From 8844f09d53a780938dfa2ae7f43b47813538169d Mon Sep 17 00:00:00 2001 From: Robert Irelan Date: Wed, 16 Jan 2019 14:07:30 -0800 Subject: xrdp: fix clipboard for non-ASCII characters Without this line, attempting to copy and paste non-ASCII characters will result in error messages like the following (and pasting from the server to the client will not work): ``` CLIPBOARD clipboard_send_data_response_for_text: 823 : ERROR: clipboard_send_data_response_for_text: bad string ``` --- nixos/modules/services/networking/xrdp.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nixos/modules/services/networking/xrdp.nix') diff --git a/nixos/modules/services/networking/xrdp.nix b/nixos/modules/services/networking/xrdp.nix index 9ed3025e47d..a1c5d879f3c 100644 --- a/nixos/modules/services/networking/xrdp.nix +++ b/nixos/modules/services/networking/xrdp.nix @@ -26,6 +26,12 @@ let substituteInPlace $out/sesman.ini \ --replace LogFile=xrdp-sesman.log LogFile=/dev/null \ --replace EnableSyslog=1 EnableSyslog=0 + + # Ensure that clipboard works for non-ASCII characters + sed -i -e '/.*SessionVariables.*/ a\ + LANG=${config.i18n.defaultLocale}\ + LOCALE_ARCHIVE=${config.i18n.glibcLocales}/lib/locale/locale-archive + ' $out/sesman.ini ''; in { -- cgit 1.4.1