aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-24 13:01:11 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-24 13:01:11 +0000
commit98e205909da2f829e7b367cdb8fb1933bd10ef4a (patch)
tree532138dbec8486c5e7bf5ec634ce6f65f0db9092
parent5a5acee712bf6ce9ad7274eaeff87633d9d08389 (diff)
downloaduserdrake-98e205909da2f829e7b367cdb8fb1933bd10ef4a.tar
userdrake-98e205909da2f829e7b367cdb8fb1933bd10ef4a.tar.gz
userdrake-98e205909da2f829e7b367cdb8fb1933bd10ef4a.tar.bz2
userdrake-98e205909da2f829e7b367cdb8fb1933bd10ef4a.tar.xz
userdrake-98e205909da2f829e7b367cdb8fb1933bd10ef4a.zip
enable to run migration assistant when adding a user
-rwxr-xr-xuserdrake5
1 files changed, 5 insertions, 0 deletions
diff --git a/userdrake b/userdrake
index c49e0dc..c8a71c2 100755
--- a/userdrake
+++ b/userdrake
@@ -24,6 +24,7 @@
use strict;
use lib qw(/usr/lib/libDrakX);
use standalone;
+use transfugdrake;
use common;
use run_program;
@@ -387,6 +388,10 @@ sub AddUser() {
$ctx->UserSetPass($userEnt, $u{passwd});
defined $us->{o}{iconval} and any::addKdmIcon($u{username}, $us->{o}{iconval});
Refresh($sysfilter, $stringsearch);
+ transfugdrake::get_windows_disk()
+ and $in->ask_yesorno(N("Migration wizard"),
+ N("Do you want to run the migration wizard in order to import Windows documents and settings in your Mandriva Linux distribution?"))
+ and run_program::raw({ detach => 1 }, 'transfugdrake');
}
}
!$error and $w->destroy; $error = 0 });