diff options
author | damien <damien@mandriva.com> | 2000-09-01 07:57:16 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2000-09-01 07:57:16 +0000 |
commit | ed0e070f2f50f0c2283651e1de0c9bb6713f3c29 (patch) | |
tree | 51c83002416c20dbc85045ccc0cd7154b72a0589 /perl-install/Xconfigurator.pm | |
parent | 23de025004e087985f16d552b9254f5d2567116e (diff) | |
download | drakx-ed0e070f2f50f0c2283651e1de0c9bb6713f3c29.tar drakx-ed0e070f2f50f0c2283651e1de0c9bb6713f3c29.tar.gz drakx-ed0e070f2f50f0c2283651e1de0c9bb6713f3c29.tar.bz2 drakx-ed0e070f2f50f0c2283651e1de0c9bb6713f3c29.tar.xz drakx-ed0e070f2f50f0c2283651e1de0c9bb6713f3c29.zip |
*** empty log message ***
Diffstat (limited to 'perl-install/Xconfigurator.pm')
-rw-r--r-- | perl-install/Xconfigurator.pm | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/perl-install/Xconfigurator.pm b/perl-install/Xconfigurator.pm index 8ab708853..30c8cdedf 100644 --- a/perl-install/Xconfigurator.pm +++ b/perl-install/Xconfigurator.pm @@ -1104,23 +1104,24 @@ sub main { _("I can set up your computer to automatically start X upon booting. Would you like X to start when you reboot?"), 1); rewriteInittab($run ? 5 : 3) unless $::testing; - - my @etc_pass_fields = qw(name pw uid gid realname home shell); - my @users = mapgrep { - my %l; @l{@etc_pass_fields} = split ':'; - $l{uid} > 500, $l{name}; - } cat_("$o->{prefix}/etc/passwd"); - - my $flag='no'; - unless (exists $o->{miscellaneous}{autologuser} || $::auto || !@users || $o->{authentication}{NIS}) { - $in->ask_from_entries_refH(_("Autologin"), + } + my @etc_pass_fields = qw(name pw uid gid realname home shell); + my @users = mapgrep { + my %l; @l{@etc_pass_fields} = split ':'; + $l{uid} > 500, $l{name}; + } cat_("$o->{prefix}/etc/passwd"); + my @wm = run_program::rooted($prefix, "/usr/sbin/chksession", "-l"); + my $flag='no'; + unless (exists $o->{miscellaneous}{autologuser} || $::auto || !@users || $o->{authentication}{NIS}) { + $in->ask_from_entries_refH(_("Autologin"), _("I can set up your computer to automatically log on one user. If you don't want to use this feature, click on the cancel button."), - [ _("Choose the default user:") => {val => \$o->{miscellaneous}{autologuser}, list => \@users, not_edit => 1} ]) - ? do { $flag='yes'; system("urpmi --auto autologin"); } : delete $o->{miscellaneaous}{autologuser}; - } - any::setAutologin($prefix, $o->{miscellaneous}{autologuser}, "startx", $flag); + [ _("Choose the default user:") => { val => \$o->{miscellaneous}{autologuser}, list => \@users, not_edit => 1}, + _("Choose the window_manager to run:") => { val => \$o->{miscellaneous}{autologwm}, list => \@wm, not_edit => 1}, ]) + ? do { $flag='yes'; $::isStandalone ? system("urpmi --auto autologin") : $o->pkgs_install("autologin"); } : delete $o->{miscellaneaous}{autologuser}; } + any::setAutologin($prefix, $o->{miscellaneous}{autologuser}, $o->{miscellaneous}{autologwm}, "/usr/X11R6/bin/startx", $flag); + run_program::rooted($prefix, "chkconfig", "--del", "gpm") if $o->{mouse}{device} =~ /ttyS/ && !$::isStandalone; } } |