A trick I learned for the produce bags is to first touch another piece of cold produce (doesn't have to be wet, just cold), then you're able to immediately open the bag.
I never thought to try it at the self-checkout, but I'm sure it works on those bags too. You just have to remember to leave something cold in the basket and not ring it up till the end.