Blame SOURCES/hplip-scan-tmp.patch

a389ae
diff -up hplip-3.15.2/scan.py.scan-tmp hplip-3.15.2/scan.py
a389ae
--- hplip-3.15.2/scan.py.scan-tmp	2015-02-04 15:27:20.423562999 +0100
a389ae
+++ hplip-3.15.2/scan.py	2015-02-04 15:34:59.170978476 +0100
a389ae
@@ -1080,7 +1080,7 @@ try:
a389ae
         if ('editor' in dest or 'viewer' in dest or 'email' in dest or 'print' in dest) \
a389ae
             and not file_saved:
a389ae
 
a389ae
-            output_fd, output = utils.make_temp_file(suffix='.png')
a389ae
+            output_fd, output = utils.make_temp_file(dir='/var/tmp', suffix='.png')
a389ae
             try:
a389ae
                 im.save(output)
a389ae
             except IOError as e:
a389ae
diff -up hplip-3.15.2/scan/sane.py.scan-tmp hplip-3.15.2/scan/sane.py
a389ae
--- hplip-3.15.2/scan/sane.py.scan-tmp	2015-01-29 13:20:21.000000000 +0100
a389ae
+++ hplip-3.15.2/scan/sane.py	2015-02-04 15:27:20.424562984 +0100
a389ae
@@ -425,7 +425,8 @@ class ScanThread(threading.Thread):
a389ae
         self.dev = device
a389ae
         self.update_queue = update_queue
a389ae
         self.event_queue = event_queue
a389ae
-        self.buffer_fd, self.buffer_path = utils.make_temp_file(prefix='hpscan')
a389ae
+        self.buffer_fd, self.buffer_path = utils.make_temp_file(dir='/var/tmp',
a389ae
+                                                                prefix='hpscan')
a389ae
         self.buffer = os.fdopen(self.buffer_fd, "w+b")
a389ae
         self.format = -1
a389ae
         self.format_name = ''