4 ms·
Author here, OSC 52 looks promising. I didn't realize there was an escape code for clipboard integration. You're the second person to mention /tmp for IPC is
by sa46 8y ago
Author here, OSC 52 looks promising. I didn't realize there was an escape code for clipboard integration.
You're the second person to mention /tmp for IPC is bad. Why is it bad?
[1]: https://medium.freecodecamp.org/tmux-in-practice-integration-with-system-clipboard-bcd72c62ff7b https://medium.freecodecamp.org/tmux-in-practice-integration...
- tomsmeding 8y agoThe reason is security. It isn't much of a problem on a laptop only you use (since then your home directory is likely none safer), but on a shared machine, or at least a shared file system, other accounts can access stuff in /tmp just fine, e.g. by replacing the file with a symlink. To perform a delete operation on a file, you only need execute permissions on the containing directory (iirc), but nothing on the file itself.