From 709dfb77c4ae0fd89a2255e3c7bed8248fcc697a Mon Sep 17 00:00:00 2001 From: Till Kamppeter Date: Tue, 15 Feb 2005 14:30:01 +0000 Subject: - Wait for CUPS being ready before querying the printer states for the printer list in the main window. --- perl-install/standalone/printerdrake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'perl-install/standalone/printerdrake') diff --git a/perl-install/standalone/printerdrake b/perl-install/standalone/printerdrake index c80710beb..37a765f06 100755 --- a/perl-install/standalone/printerdrake +++ b/perl-install/standalone/printerdrake @@ -293,6 +293,7 @@ sub RefreshLocalPrintersFull { my $searchstr = "$p|$model|$connect|$description|$location"; push(@LocalReal, $p) if $searchstr =~ /\Q$strfilt/i; } + printer::services::wait_for_cups(); foreach my $p (sort { lc($a) cmp lc($b) } @LocalReal) { my $state = ($printer->{SPOOLER} !~ /cups/ ? N("Unknown") : (printer::cups::queue_enabled($p) ? N("Enabled") : @@ -328,6 +329,7 @@ sub RefreshRemotePrintersFull { # All remaining to which the search term applies push(@RemoteReal, $p) if $searchstr =~ /\Q$strfilt/i; } + printer::services::wait_for_cups(); foreach my $p (sort { lc($a->{queuename}) cmp lc($b->{queuename}) } @RemoteReal) { my $queue = $p->{queuename}; -- cgit v1.2.1