z icon indicating copy to clipboard operation
z copied to clipboard

Dropping tmp files (.z.XXXXXX)

Open rupa opened this issue 10 years ago • 2 comments

z still manages to drop tempfiles every once in a while in a pretty hard to reproduce way. It's better than it used to bem and more of a nuisance than anything, but till it's completely fixed, this issue will remain open.

rupa avatar Feb 14 '15 18:02 rupa

Just wanted to say that this is definitely still happening, I have around 10 - 50 of these on my machines generated around on file every week. have you thought about setting a signal trap to remove them on exit? (or yeah better putting them literally anywhere else but my home directory)

phiresky avatar Jan 14 '19 17:01 phiresky

Why not just put them in /tmp? That typically resides in memory anyways, so mv from /tmp to $HOME shouldn't be a performance issue, even on strange drive setups. Or perhaps, $HOME/.cache/z.

tempfile="$(mktemp /tmp/.z.XXXXXX)"

YodaEmbedding avatar May 18 '19 09:05 YodaEmbedding