Skip to content

Commit

Permalink
fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
CGessinger committed Nov 25, 2023
1 parent a130328 commit fc715d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<name>SkyPrint</name>
<summary>Print documents directly from your cloud-storage</summary>
<description><![CDATA[A straightforward app enabling users to easily print documents directly from your cloud storage. With Sky Print, you can adjust a variety of print settings, such as paper size, orientation and quality.]]></description>
<version>0.1.3</version>
<version>0.1.4</version>
<licence>agpl</licence>
<author mail="[email protected]">Christian Gessinger</author>
<website>https://github.com/CGessinger/nextcloud-skyprint</website>
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/PrintService.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function print(string $printer, string $file, int $copies, string $orient
$file = Filesystem::getLocalFile($file);

$pageranges = $range ? "-o page-ranges=$range" : "";
$command = "lp -d $printer $file -n $copies -o orientation-requested=$orientation -o media=$media $pageranges -o number-up=$nup";
$command = "lp -d $printer \"$file\" -n $copies -o orientation-requested=$orientation -o media=$media $pageranges -o number-up=$nup";
$process = new Process($command);
$process->run();

Expand Down

0 comments on commit fc715d9

Please sign in to comment.