summaryrefslogtreecommitdiffstats
path: root/move/tree/mdk_totem
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-11-07 15:04:41 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-11-07 15:04:41 +0000
commitcaabe9e4ca4a89580d4cd8526732ca076c796639 (patch)
treeffb0c609ec7b648d256718dcf66e221155e72020 /move/tree/mdk_totem
parentfd2e6cd9c2f41d57a7a2caf7e73a37e5beaa9227 (diff)
downloaddrakx-caabe9e4ca4a89580d4cd8526732ca076c796639.tar
drakx-caabe9e4ca4a89580d4cd8526732ca076c796639.tar.gz
drakx-caabe9e4ca4a89580d4cd8526732ca076c796639.tar.bz2
drakx-caabe9e4ca4a89580d4cd8526732ca076c796639.tar.xz
drakx-caabe9e4ca4a89580d4cd8526732ca076c796639.zip
get the file <=> loop association from mdk_move_loop and pass it to mdk_behind_totem
Diffstat (limited to 'move/tree/mdk_totem')
-rwxr-xr-xmove/tree/mdk_totem13
1 files changed, 8 insertions, 5 deletions
diff --git a/move/tree/mdk_totem b/move/tree/mdk_totem
index 928723bfe..76bc43ec5 100755
--- a/move/tree/mdk_totem
+++ b/move/tree/mdk_totem
@@ -78,10 +78,10 @@ if (my @busy = remove_simple_daemons(busy_pids_and_files())) {
}
}
-{
- $in->wait_message('', N("Copying to memory to allow removing the CDROM"));
- system('mdk_move_loop', 'to_memory', 'always', 'totem');
-}
+my %file2loop = do {
+ my $_w = $in->wait_message('', N("Copying to memory to allow removing the CDROM"));
+ `GIVE_LOOP=1 mdk_move_loop to_memory always always_i18n totem` =~ /(.*?)=(.*)/g;
+};
ugtk2::gtkset_mousecursor_normal(); #- for restoring a normal in any case
ugtk2::flush();
@@ -92,5 +92,8 @@ if (my $pid = fork()) {
$ENV{MDKMOVE} = $pid;
exec 'totem';
} else {
- exec 'sudo', 'mdk_behind_totem', '--totem-pid', $totem_pid;
+ exec 'sudo', 'mdk_behind_totem',
+ '--boot-loop', $file2loop{'live_tree_boot.clp'},
+ '--main-loop', $file2loop{'live_tree.clp'},
+ '--totem-pid', $totem_pid;
}