Skip to content

Instantly share code, notes, and snippets.

@iznog
Created December 15, 2017 15:01
Show Gist options
  • Select an option

  • Save iznog/960bce3198fbb27d3dcbb2665f78bcca to your computer and use it in GitHub Desktop.

Select an option

Save iznog/960bce3198fbb27d3dcbb2665f78bcca to your computer and use it in GitHub Desktop.
Simple-scan - Cleaning user temp directories after segmentation fault
#!/bin/bash
# When there's segmentation fault on start of simple-scan
# kill simple-scan
kill `pidof simple-scan`
# delete temp files
rm ~/.cache/simple-scan/autosaves/*
rm ~/.cache/simple-scan/state
# Restart simple-scan
simple-scan &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment