termux / termux/termux-api

termux-notification set clipboard on action doesn't work

Open
#311 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

Problem description
Trying to set the clipboard from a notification action but text is not set and the previous state is kept.

Steps to reproduce
From Termux: termux-notification --action "termux-clipboard-set some-text"

Expected behavior
After clicking the notification and running termux-clipboard-get or pasting anywhere, 'some-text' should be inserted

Additional information
Android version: 9
CPU arch: aarch64

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing termux-notification --action "termux-clipboard-set some-text" on Android 9, then trace how notification actions launch Termux commands and how clipboard updates are handled. Done means clicking the action changes the clipboard so termux-clipboard-get and pasting return some-text.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
cli, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.