diff options
-rwxr-xr-x | control-center | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/control-center b/control-center index 299a5c26..12a7e470 100755 --- a/control-center +++ b/control-center @@ -559,7 +559,6 @@ sub compute_exec_string { $emb_box->show; $emb_socket->realize; $exec = $exec . " --embedded " . $emb_socket->window->XWINDOW . " " . $$; - $exp_socket and $exec_log = "logdrake --explain=$log_exp --embedded " . $exp_socket->window->XWINDOW . " " . $$; } if ($gtkplug > 0) { $emb_wait->show; @@ -591,6 +590,8 @@ sub compute_exec_string { } if ($logs) { my $pid; + $exp_socket->realize; + $exec_log = "logdrake --explain=$log_exp --embedded " . $exp_socket->window->XWINDOW . " " . $$; unless ($pid = fork) { splash_warning(_("cannot fork: %s", $~)) unless defined $pid; print "explain : $log_exp \n "; @@ -630,7 +631,7 @@ sub launch_xapp { sub clean_socket { $emb_box->hide; - !$logs and $exp_frame->hide; + $logs and $exp_frame->hide; foreach (@pid_launched) { kill 'TERM', $_ if (defined $_); } |