Skip to content

Commit

Permalink
Add fallback to "physical_printer_name" from "name" for CUPS printing #…
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemhall committed Jan 8, 2024
1 parent bcfe700 commit b8054b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Libki/Utils/Printing.pm
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ sub release_for_cups {
my $log = $c->log();
my $cups = cups_setup($c);

my $cups_printer_name = $printer->{name};
my $cups_printer_name = $printer->{name} || $printer->{physical_printer_name};
$log->debug( "CUPS Printer name: " . $cups_printer_name );
my $cups_printer = $cups->getDestination($cups_printer_name);

Expand Down

0 comments on commit b8054b1

Please sign in to comment.