summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-10-04 15:11:19 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-10-04 15:11:19 +0000
commitcc134c0d627b3bcf3d60867aa4012a643b756679 (patch)
tree909a600247265dbfb0e0841df32522cfede70a35 /perl-install/lang.pm
parentbc48dff8f55a68b2e5b12d36fdf5e93eded3d2a5 (diff)
downloaddrakx-cc134c0d627b3bcf3d60867aa4012a643b756679.tar
drakx-cc134c0d627b3bcf3d60867aa4012a643b756679.tar.gz
drakx-cc134c0d627b3bcf3d60867aa4012a643b756679.tar.bz2
drakx-cc134c0d627b3bcf3d60867aa4012a643b756679.tar.xz
drakx-cc134c0d627b3bcf3d60867aa4012a643b756679.zip
- fix configuring kdeglobals (was broken because of /etc/kderc using
udpate-alternatives which use absolute symlinks)
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r--perl-install/lang.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index e33d9ac95..fbe28b1f4 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -1134,8 +1134,12 @@ sub write {
));
eval {
- my %dir_defaults = read_gnomekderc("$::prefix/etc/kderc", 'Directories-default');
- my $confdir = $::prefix . ($b_user_only ? "$ENV{HOME}/.kde" : first(split(',', $dir_defaults{prefixes})) || "/etc/kde") . '/share/config';
+ my $confdir = $::prefix . ($b_user_only ? "$ENV{HOME}/.kde" : do {
+ my $kderc = $::prefix ? common::expand_symlinks_with_absolute_symlinks_in_prefix($::prefix, '/etc/kderc') : '/etc/kderc';
+ log::l("reading $kderc");
+ my %dir_defaults = read_gnomekderc($kderc, 'Directories-default');
+ first(split(',', $dir_defaults{prefixes})) || "/etc/kde"
+ }) . '/share/config';
-d $confdir or die 'not configuring kde config files since it is not installed/used';