New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xrdp: fix clipboard for non-ASCII characters #54113
Conversation
@volth I don't know - I'm not sure how to set up the drive sharing yet. Edit: figured it out - it seems to fix your issue too. |
@@ -26,6 +26,9 @@ 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\'$'\n'"LANG=${config.i18n.defaultLocale}"'$\n'"LOCALE_ARCHIVE=${config.i18n.glibcLocales}/lib/locale/locale-archive;" $out/sesman.ini |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you break this up? It's difficult to read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
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 ```
c458329
to
8844f09
Compare
LGTM 👍 |
Is this applicable for a backport? |
This is more a question, if someone tested or tried a backport, because I cannot test anything. |
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):
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)