diff --git a/appinfo/info.xml b/appinfo/info.xml
index 5cf9b12..457544e 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -9,7 +9,7 @@
SkyPrint
Print documents directly from your cloud-storage
- 0.1.3
+ 0.1.4
agpl
Christian Gessinger
https://github.com/CGessinger/nextcloud-skyprint
diff --git a/lib/Service/PrintService.php b/lib/Service/PrintService.php
index ee18415..43ec0df 100644
--- a/lib/Service/PrintService.php
+++ b/lib/Service/PrintService.php
@@ -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();