faa6c09
diff -up hplip-3.18.12/scan.py.scan-tmp hplip-3.18.12/scan.py
faa6c09
--- hplip-3.18.12/scan.py.scan-tmp	2019-01-08 12:48:20.194815147 +0100
faa6c09
+++ hplip-3.18.12/scan.py	2019-01-08 12:50:47.942620000 +0100
faa6c09
@@ -1887,7 +1887,7 @@ try:
a8603b4
         if ('editor' in dest or 'viewer' in dest or 'email' in dest or 'print' in dest) \
a8603b4
             and not file_saved:
a8603b4
 
a8603b4
-            output_fd, output = utils.make_temp_file(suffix='.png')
a8603b4
+            output_fd, output = utils.make_temp_file(dir='/var/tmp', suffix='.png')
a8603b4
             try:
faa6c09
                 '''pyPlatform = platform.python_version()
faa6c09
                 num = pyPlatform.split('.')
faa6c09
diff -up hplip-3.18.12/scan/sane.py.scan-tmp hplip-3.18.12/scan/sane.py
faa6c09
--- hplip-3.18.12/scan/sane.py.scan-tmp	2018-12-03 08:10:22.000000000 +0100
faa6c09
+++ hplip-3.18.12/scan/sane.py	2019-01-08 12:48:20.194815147 +0100
6806ada
@@ -425,7 +425,8 @@ class ScanThread(threading.Thread):
7f9d7f8
         self.dev = device
7f9d7f8
         self.update_queue = update_queue
7f9d7f8
         self.event_queue = event_queue
7f9d7f8
-        self.buffer_fd, self.buffer_path = utils.make_temp_file(prefix='hpscan')
7f9d7f8
+        self.buffer_fd, self.buffer_path = utils.make_temp_file(dir='/var/tmp',
7f9d7f8
+                                                                prefix='hpscan')
7f9d7f8
         self.buffer = os.fdopen(self.buffer_fd, "w+b")
7f9d7f8
         self.format = -1
7f9d7f8
         self.format_name = ''