This is known problem, fixed in the upcoming release.
The problem only occurs when gscan2pdf is not shutdown cleanly, and then the temp area is deleted before gscan2pdf is restarted.
If gscan2pdf is restarted first, then it will restore the previous session.
> #!/usr/bin/perl > exec("rm ~/.gscan2pdf");
How about
#!/bin/bash rm ~/.gscan2pdf
or even
#!/bin/bash mv ~/.gscan2pdf ~/.gscan2pdf.old grep -v session ~/.gscan2pdf.old > ~/.gscan2pdf rm ~/.gscan2pdf.old
This is known problem, fixed in the upcoming release.
The problem only occurs when gscan2pdf is not shutdown cleanly, and then the temp area is deleted before gscan2pdf is restarted.
If gscan2pdf is restarted first, then it will restore the previous session.
> #!/usr/bin/perl
> exec("rm ~/.gscan2pdf");
How about
#!/bin/bash
rm ~/.gscan2pdf
or even
#!/bin/bash
mv ~/.gscan2pdf ~/.gscan2pdf.old
grep -v session ~/.gscan2pdf.old > ~/.gscan2pdf
rm ~/.gscan2pdf.old