diff options
author | François Andriot <albator78@libertysurf.fr> | 2013-07-28 14:39:39 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2013-07-28 14:39:39 +0200 |
commit | 15546e1bdcca076459d4dde156a47334f8a64955 (patch) | |
tree | bb46f0310f551c5609d4e8add6882a6b7ba89d1b /redhat/tdebase | |
parent | 87d7ecf03757f5b4001a7c8682ce46c9eb1b6037 (diff) | |
parent | 7c8779619f078a4a3b565ffa1673bac2f8e70c19 (diff) | |
download | tde-packaging-15546e1bdcca076459d4dde156a47334f8a64955.tar.gz tde-packaging-15546e1bdcca076459d4dde156a47334f8a64955.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
Diffstat (limited to 'redhat/tdebase')
-rw-r--r-- | redhat/tdebase/tdebase-14.0.0.spec | 8 |
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 55c5d389c..31d1c786f 100644 --- a/redhat/tdebase/tdebase-14.0.0.spec +++ b/redhat/tdebase/tdebase-14.0.0.spec @@ -2044,11 +2044,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' |