From 77ea812854ab27b687953ca7f329222211ba18bd Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 26 Nov 2003 16:07:25 +0000 Subject: - configure ksycoca per lang - configure ksycoca with flag working - configure kdeglobals lang (for kcontrol and a few more) --- move/move.pm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'move/move.pm') diff --git a/move/move.pm b/move/move.pm index 864f8a7e3..61e9041fc 100644 --- a/move/move.pm +++ b/move/move.pm @@ -140,6 +140,7 @@ sub init { key_installfiles('simple'); if (`getent passwd 501` =~ /([^:]+):/) { $o->{users} = [ { name => $1 } ]; + $ENV{HOME} = "/home/$1"; #- used by lang::read() :-/ print "using existing user configuration\n"; $using_existing_user_config = 1; } @@ -148,7 +149,7 @@ sub init { $using_existing_host_config = 1; } if (-s '/etc/sysconfig/i18n') { - lang::set($o->{locale} = lang::read('', 0)); + lang::set($o->{locale} = lang::read('', 0)); #- read ~/.i18n first if it exists install2::handleI18NClp(); } @@ -402,6 +403,17 @@ sub install2::configMove { mouse::write_conf($o, $o->{mouse}, 1); #- write xfree mouse conf detect_devices::install_addons(''); + { + my $user = $o->{users}[0]{name}; + cp_af("/usr/share/config/kdeglobals", $confdir); + lang::configure_kdeglobals($o->{locale}, "/home/$user/.kde/share/config"); + + mkdir_p("/home/$user/.kde/share/services"); + cp_af("/usr/share/services/ksycoca-$o->{locale}{lang}", "/home/$user/.kde/share/services/ksycoca"); + + run_program::run('chown', '-R', "$user.$user", "/home/$user/.kde"); + } + foreach my $step (@{$o->{orderedSteps_orig}}) { next if member($step, @{$o->{orderedSteps}}); while (my $f = shift @{$o->{steps}{$step}{toBeDone} || []}) { -- cgit v1.2.1