diff options
author | Robert Irelan <rirelan@gmail.com> | 2019-01-16 14:07:30 -0800 |
---|---|---|
committer | Robert Irelan <rirelan@gmail.com> | 2019-01-22 09:52:53 -0800 |
commit | 8844f09d53a780938dfa2ae7f43b47813538169d (patch) | |
tree | 523512a2699f137b31fa94779e1228f0065449aa /nixos/modules/services/networking/xrdp.nix | |
parent | a0fc112ae3d4c9750221098889503c443394a613 (diff) | |
download | nixpkgs-8844f09d53a780938dfa2ae7f43b47813538169d.tar nixpkgs-8844f09d53a780938dfa2ae7f43b47813538169d.tar.gz nixpkgs-8844f09d53a780938dfa2ae7f43b47813538169d.tar.bz2 nixpkgs-8844f09d53a780938dfa2ae7f43b47813538169d.tar.lz nixpkgs-8844f09d53a780938dfa2ae7f43b47813538169d.tar.xz nixpkgs-8844f09d53a780938dfa2ae7f43b47813538169d.tar.zst nixpkgs-8844f09d53a780938dfa2ae7f43b47813538169d.zip |
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 ```
Diffstat (limited to 'nixos/modules/services/networking/xrdp.nix')
-rw-r--r-- | nixos/modules/services/networking/xrdp.nix | 6 |
1 files changed, 6 insertions, 0 deletions
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 { |