theimpostor / osc

Access the system clipboard from anywhere using the ANSI OSC52 sequence
MIT License
59 stars 4 forks source link

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

Open jdx opened 5 months ago

jdx commented 5 months ago

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
theimpostor commented 5 months ago

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