hplip-scan-tmp.patch 1.3 KB

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