diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-10-15 15:24:34 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-10-15 15:24:34 +0000 |
commit | f5bb90ed73e648047508f57f212618dd45825391 (patch) | |
tree | b1eedd801ee1a8e8fb2613d8cf378618d09075d7 /move/move.pm | |
parent | 56b1df63468a61226da41321cdb812bd7376ebcd (diff) | |
download | drakx-backup-do-not-use-f5bb90ed73e648047508f57f212618dd45825391.tar drakx-backup-do-not-use-f5bb90ed73e648047508f57f212618dd45825391.tar.gz drakx-backup-do-not-use-f5bb90ed73e648047508f57f212618dd45825391.tar.bz2 drakx-backup-do-not-use-f5bb90ed73e648047508f57f212618dd45825391.tar.xz drakx-backup-do-not-use-f5bb90ed73e648047508f57f212618dd45825391.zip |
- rename exitMove to startMove
- remove the blinks before kde start by relaying the last X connection
(using gmessage for now, will use "xtest --wait" later)
Diffstat (limited to 'move/move.pm')
-rw-r--r-- | move/move.pm | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/move/move.pm b/move/move.pm index 640b89d13..39d4cd278 100644 --- a/move/move.pm +++ b/move/move.pm @@ -45,20 +45,24 @@ sub init { modules::load_category('multimedia/sound'); - $o->{steps}{exitMove} = { reachable => 1 }; - $o->{orderedSteps} = [ qw(selectLanguage acceptLicense selectMouse selectKeyboard exitMove) ]; + $o->{steps}{startMove} = { reachable => 1, text => "Start Move" }; + $o->{orderedSteps} = [ qw(selectLanguage acceptLicense selectMouse selectKeyboard startMove) ]; member($_, @ALLOWED_LANGS) or delete $lang::langs{$_} foreach keys %lang::langs; } -sub exit() { +sub install2::startMove { + my ($_o) = @_; run_program::run('adduser', 'mdk'); output('/var/run/console.lock', 'mdk'); output('/var/run/console/mdk', 1); run_program::run('pam_console_apply'); - run_program::run('su', 'mdk', 'startkde'); + fork() or exec 'gmessage', '...' or c::_exit(0); + + sleep 1; + exec 'su', 'mdk', 'startkde'; } sub automatic_xconf { |