summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2013-07-26 20:17:29 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2013-07-26 20:17:29 +0200
commit05e7179a7ebf530d123ec3c567381c17225686d7 (patch)
treea491b020d87f2d8035acb9748711e665eb28edc3
parent24aecadc7741f2f5af3e8946baf285aa8a9ee035 (diff)
downloadtde-packaging-05e7179a7ebf530d123ec3c567381c17225686d7.tar.gz
tde-packaging-05e7179a7ebf530d123ec3c567381c17225686d7.zip
RPM Packaging: update tdebase
-rw-r--r--redhat/tdebase/tdebase-14.0.0.spec8
1 files changed, 7 insertions, 1 deletions
diff --git a/redhat/tdebase/tdebase-14.0.0.spec b/redhat/tdebase/tdebase-14.0.0.spec
index a8428d058..e4dedd6d3 100644
--- a/redhat/tdebase/tdebase-14.0.0.spec
+++ b/redhat/tdebase/tdebase-14.0.0.spec
@@ -2043,11 +2043,17 @@ fi
%if 0%{?with_selinux_policy}
/usr/sbin/semodule -i "%{?_sysconfdir}/trinity/tdm/tdm.pp"
%endif
-# Default user icon in TDM
+# Sets default user icon in TDM
if [ ! -r "%{tde_datadir}/apps/tdm/faces/.default.face.icon" ]; then
[ -d "%{tde_datadir}/apps/tdm/faces" ] || mkdir -p "%{tde_datadir}/apps/tdm/faces"
%__cp -f "%{tde_datadir}/apps/tdm/pics/users/default2.png" "%{tde_datadir}/apps/tdm/faces/.default.face.icon"
fi
+# Sets default language for TDM
+if [ "$1" = "1" ]; then
+ if [ -n "${LANG}" ] && [ "${LANG}" != "C" ]; then
+ %__sed -i "%{_sysconfdir}/trinity/tdm/tdmrc" -e "s|^#*Language=.*|Language=${LANG}|"
+ fi
+fi
%posttrans -n trinity-tdm
# Make sure that TDM configuration files are now under '/etc/trinity/tdm'