mpv-player/mpv — pull request #1111 by enkore (2014-09-20 20:55:03+00:00)
Title: screenshot: fallback to $HOME if cwd is not writable

Note: not sure about that access() syscall. There is probably a more mplayer-ry way of doing that and I'm happy to replace it with that way :)