summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorTill Kamppeter <tkamppeter@mandriva.com>2002-08-28 15:38:26 +0000
committerTill Kamppeter <tkamppeter@mandriva.com>2002-08-28 15:38:26 +0000
commita031a3eacefdd49ea192b732bc038c6521ab10aa (patch)
treee5063e98f269316342e442de157dff2c8e98eb3c /perl-install
parent7d4f7d28353b999a596562262afdb95f400c1a28 (diff)
downloaddrakx-a031a3eacefdd49ea192b732bc038c6521ab10aa.tar
drakx-a031a3eacefdd49ea192b732bc038c6521ab10aa.tar.gz
drakx-a031a3eacefdd49ea192b732bc038c6521ab10aa.tar.bz2
drakx-a031a3eacefdd49ea192b732bc038c6521ab10aa.tar.xz
drakx-a031a3eacefdd49ea192b732bc038c6521ab10aa.zip
OpenOffice.org: Remove default printer tag from the "Generic Printer"
when Printerdrake adds an entry for the system's default printer.
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/printer.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/printer.pm b/perl-install/printer.pm
index d5bc1e22b..fc2e0bc6f 100644
--- a/perl-install/printer.pm
+++ b/perl-install/printer.pm
@@ -2569,6 +2569,12 @@ sub makeopenofficeprinterentry {
my $default = "0";
if ($queue eq $printer->{DEFAULT}) {
$default = "1";
+ # "DefaultPrinter=0" for the "Generic Printer"
+ $configfile = removeentry("Generic Printer", "DefaultPrinter=",
+ $configfile);
+ $configfile = addentry("Generic Printer",
+ "DefaultPrinter=0",
+ $configfile);
}
$configfile = addentry($queue,
"DefaultPrinter=$default",