termux-api icon indicating copy to clipboard operation
termux-api copied to clipboard

Clipboard

Open octavo opened this issue 8 months ago • 6 comments

termux-clipboard-set does not work for the samsung galaxy xcover pro android user.

octavo avatar Apr 23 '25 11:04 octavo

It will not work in the case if termux app is not in foreground.

twaik avatar Apr 23 '25 11:04 twaik

Termux is in the foreground.

octavo avatar Apr 23 '25 13:04 octavo

Probably you should share more details and logs. Because currently we have no enough data for debugging this.

twaik avatar Apr 23 '25 13:04 twaik

echo example | termux-clipboard-set ran before the latest update, but now stalls.

octavo avatar Apr 25 '25 07:04 octavo

I didn't update to avoid regressions so I'm still on the second-to-last f-droid release. Regarding:

It will not work in the case if termux app is not in foreground.

I don't seem to have that constraint. I can run sleep 5; echo example | termux-clipboard-set and open a different app and it will have "example" on the clipboard after the expected time (the clipboard previously contained different content). Not sure if this constraint is new with the update or if it's always supposed to be there

$ termux-clipboard-set example



^C
$ 

octavo avatar May 16 '25 11:05 octavo