psutils/psutils-paperconf.patch
wu-leilei 2ea1f71f16 Fix could not run paper command
(cherry picked from commit dfb960f0939f55785f52b5644ff553143052870b)
2024-04-07 18:24:55 +08:00

13 lines
490 B
Diff

diff -Nur a/PSUtils.pm b/PSUtils.pm
--- a/PSUtils.pm 2024-04-07 16:45:42.263733801 +0800
+++ b/PSUtils.pm 2024-04-07 16:46:22.289733801 +0800
@@ -60,7 +60,7 @@
# Get the size of the given paper, or the default paper if no argument given.
sub paper {
my ($cmd, $silent) = @_;
- unshift @{$cmd}, "paper";
+ unshift @{$cmd}, "paperconf";
my $out;
run3 $cmd, undef, \$out, $silent ? \undef : undef, {return_if_system_error=>1};
Die("could not run `paper' command") if $? == -1;