Description: Language support for /etc/profile.d TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . ldm (2:2.2.18-1+lliurex2) xenial; urgency=high . * Added LDM_PASSWORD env variable to support samba mounts Author: Hector Garcia Huerta --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: https://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- ldm-2.2.18.orig/rc.d/X50-generate-env +++ ldm-2.2.18/rc.d/X50-generate-env @@ -47,6 +47,21 @@ AUX_LANGUAGE=$(echo $LDM_LANGUAGE | sed MY_LANG="LC_ALL=$LDM_LANGUAGE LANGUAGE=$AUX_LANGUAGE LANG=$LDM_LANGUAGE" export MY_LANG +# Write vars to a file to help semi-thin clients when executing profile.d +if boolean_is_true "$LTSP_FATCLIENT"; then + + cat < /etc/profile.d/00-language-vars.sh +#!/bin/sh +$MY_LANG +export LC_ALL +export LANG +export LANGUAGE +EOF + +fi + +# + # Set the DISPLAY env, if not running over encrypted ssh if boolean_is_true "$LDM_DIRECTX"; then MY_DISP="DISPLAY=${LDMINFO_IPADDR}${DISPLAY}"