diff options
author | Till Kamppeter <tkamppeter@mandriva.com> | 2001-09-04 22:44:23 +0000 |
---|---|---|
committer | Till Kamppeter <tkamppeter@mandriva.com> | 2001-09-04 22:44:23 +0000 |
commit | 2ae9fd6598b90404d0b01a9d82e452493efacdaa (patch) | |
tree | 367f1a4d5ccaee5d4b83b16e24ef9d5198aa9c4d /perl-install/printer.pm | |
parent | 831b3b8b6b29fba4ae696f06ce5149c4656339f0 (diff) | |
download | drakx-2ae9fd6598b90404d0b01a9d82e452493efacdaa.tar drakx-2ae9fd6598b90404d0b01a9d82e452493efacdaa.tar.gz drakx-2ae9fd6598b90404d0b01a9d82e452493efacdaa.tar.bz2 drakx-2ae9fd6598b90404d0b01a9d82e452493efacdaa.tar.xz drakx-2ae9fd6598b90404d0b01a9d82e452493efacdaa.zip |
Fitted to the new Foomatic version.
Fixed bug of spooler change only working when language is English.
Diffstat (limited to 'perl-install/printer.pm')
-rw-r--r-- | perl-install/printer.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/printer.pm b/perl-install/printer.pm index 140b8442f..7e815e9b4 100644 --- a/perl-install/printer.pm +++ b/perl-install/printer.pm @@ -482,10 +482,10 @@ sub get_cups_default_printer { return undef; } -sub set_cups_default_printer { +sub set_default_printer { my $default = $_[0]; - run_program::rooted($prefix, "lpoptions", - "-d", $default) || return; + run_program::rooted($prefix, "foomatic-configure", + "-D", "-n", $default) || return; } sub read_cupsd_conf { @@ -718,7 +718,7 @@ sub configure_queue($) { sub remove_queue($$) { my ($printer) = $_[0]; my ($queue) = $_[1]; - run_program::rooted($prefix, "foomatic-configure", "-D", + run_program::rooted($prefix, "foomatic-configure", "-R", "-s", $printer->{SPOOLER}, "-n", $queue); delete $printer->{configured}{$queue}; |