diff options
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r-- | perl-install/any.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm index eda464f54..e8b4a98be 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -606,7 +606,7 @@ You can create additional entries or change the existing ones."), [ { sub get_autologin() { my %desktop = getVarsFromSh("$::prefix/etc/sysconfig/desktop"); my $gdm_file = "$::prefix/etc/X11/gdm/custom.conf"; - my $kdm_file = "$::prefix/usr/share/config/kdm/kdmrc"; + my $kdm_file = common::read_alternative('kdm4-config'); my $desktop = $desktop{DESKTOP} || (! -e $kdm_file && -e $gdm_file ? 'GNOME' : 'KDE4'); my $autologin = do { if (($desktop{DISPLAYMANAGER} || $desktop) eq 'GNOME') { @@ -626,8 +626,7 @@ sub set_autologin { my $autologin = bool2text($o_user); #- Configure KDM / MDKKDM - #- /usr/share/config/kdm/kdmrc is an alternative pointing in /var - eval { common::update_gnomekderc_no_create("$::prefix/usr/share/config/kdm/kdmrc", 'X-:0-Core' => ( + eval { common::update_gnomekderc_no_create(common::read_alternative('kdm4-config'), 'X-:0-Core' => ( AutoLoginEnable => $autologin, AutoLoginUser => $o_user, )) }; |