Why is /tmp not suitable for IPC? Is it because it's generally more open than a home directory?
Secondly because other uesrs might create files. Imagine somebody ran:
ln -s /home/foo/.bash_profile /tmp/clipboard-data.txt
The next time you ran your clipboard-script your .bash_profile file would get its contents erased, due to the symlink.Predictable filenames are a big security hole for multiuser systems, even though in practice you're probably the sole user of your desktop/laptop. I've reported numerous bugs of this kind, including this small set against GNU emacs: