psutils/psutils-paperconf.patch

13 lines
490 B
Diff
Raw Normal View History

2024-04-07 17:34:11 +08:00
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;