Description: 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.13-1+lliurex2) trusty; urgency=medium . * Adding more descriptive messages when login fails 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: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- ldm-2.2.13.orig/screen.d/ldm +++ ldm-2.2.13/screen.d/ldm @@ -131,4 +131,33 @@ if [ -x /usr/share/ltsp/xinitrc ]; then xinitrc=/usr/share/ltsp/xinitrc fi -exec xinit $xinitrc /usr/sbin/ldm -- ${DISPLAY} vt${TTY} -auth ${XAUTHORITY} ${X_ARGS} -br >/dev/null 2>&1 + + +# LLIUREX EDIT + +case $LDM_LANGUAGE in + + "es_ES.UTF-8" | "es.UTF-8") + IMG_LANG="es" + ;; + + "ca_ES.UTF-8@valencia" | "ca_ES.UTF-8" ) + IMG_LANG="val" + ;; + + *) + IMG_LANG="en" + ;; + +esac + +eval $(getltscfg -a | grep -v export) +result=$(echo $LTSP_FATCLIENT | grep -iq "true" && echo 1 || echo 0) +if [ "$result" = "1" ]; then + cp /usr/share/ldm/themes/lliurex/bg_fat_$IMG_LANG.png /usr/share/ldm/themes/lliurex/bg.png || true +else + cp /usr/share/ldm/themes/lliurex/bg_thin_$IMG_LANG.png /usr/share/ldm/themes/lliurex/bg.png || true +fi + +LANG=$LDM_LANGUAGE exec xinit $xinitrc /usr/sbin/ldm -- ${DISPLAY} vt${TTY} -auth ${XAUTHORITY} ${X_ARGS} -br >/dev/null 2>&1 +