summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorTill Kamppeter <tkamppeter@mandriva.com>2005-02-15 14:30:01 +0000
committerTill Kamppeter <tkamppeter@mandriva.com>2005-02-15 14:30:01 +0000
commit709dfb77c4ae0fd89a2255e3c7bed8248fcc697a (patch)
tree660de018430f59d3813ee991fd8b218a4491ddf1 /perl-install/standalone
parentef1d041a459e16065c224fbaa0e3664a683b7975 (diff)
downloaddrakx-709dfb77c4ae0fd89a2255e3c7bed8248fcc697a.tar
drakx-709dfb77c4ae0fd89a2255e3c7bed8248fcc697a.tar.gz
drakx-709dfb77c4ae0fd89a2255e3c7bed8248fcc697a.tar.bz2
drakx-709dfb77c4ae0fd89a2255e3c7bed8248fcc697a.tar.xz
drakx-709dfb77c4ae0fd89a2255e3c7bed8248fcc697a.zip
- Wait for CUPS being ready before querying the printer states for the
printer list in the main window.
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/printerdrake2
1 files changed, 2 insertions, 0 deletions
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};