osc icon indicating copy to clipboard operation
osc copied to clipboard

ERROR opentty: open /dev/pts/0: permission denied

Open jdx opened this issue 9 months ago • 1 comments

not sure what this error means, I am probably doing something wrong. System is Ubuntu 24.04.

jdx in 🌐 bamboo in ~ ❯ osc copy
2024-05-11T14:55:40Z ERROR opentty: open /dev/pts/0: permission denied
Error: open /dev/pts/0: permission denied
Usage:
  osc copy [flags]

Flags:
  -h, --help   help for copy

Global Flags:
  -d, --device string   select device (default "/dev/pts/0")
  -l, --log string      write logs to file
  -t, --timeout float   tty read timeout in seconds (default 5)
  -v, --verbose         verbose logging

jdx avatar May 11 '24 14:05 jdx

Can you try with unsetting SSH_TTY SSH_TTY= osc copy, or use the --device arg: osc copy --device /dev/tty

theimpostor avatar May 13 '24 15:05 theimpostor