Skip to content

Termux script intent #1809

@QFrequentH

Description

@QFrequentH

Have you checked if an issue already exists for this problem?

  • Nobody else has reported this problem before

What problem did you face using the app?

Cant manage to run a script inside termux via intent, searched everything, installed the api, am other dependencies, have tried broadcast and service, as in termux am worked only a

09/22 23:54:15.523 Down KEYCODE_VOLUME_UP - consumed: false, as service for me, for example with:
am startservice --user 0 -n com.termux/com.termux.app.RunCommandService \ -a com.termux.RUN_COMMAND \ --es com.termux.RUN_COMMAND_PATH '/data/data/com.termux/files/usr/bin/top' \ --esa com.termux.RUN_COMMAND_ARGUMENTS '-n,5' \ --es com.termux.RUN_COMMAND_WORKDIR '/data/data/com.termux/files/home' \ --ez com.termux.RUN_COMMAND_BACKGROUND 'false' \ --es com.termux.RUN_COMMAND_SESSION_ACTION '0'
Have seen the termux documentation about intents, used theyre names of the values, used them like in am command, now its like on picture, but beside the toasts, that the event is being triggered, nothing happens, even echo to file.
If using the verbose log, these entries kind of confuse me, didnt found anything where and why there from, why false..
09/23 00:06:25.404 Down KEYCODE_VOLUME_UP - consumed: false, MyKeyEvent(keyCode=24, action=0, metaState=0, scanCode=115, device=InputDeviceInfo(descriptor=485d69228e24f5e46da1598745890b214130dbc4, name=gpio-keys, id=3, isExternal=false, isGameController=false), repeatCount=0, source=257) 09/23 00:08:46.479 Service received event from UI: Ping(key=check_is_crashed)
The goal is just to trigger that python script with an argument "0", its located at termux home has tbe needed permissions and is able to start without the need of ./ or python before it. If you are able to identify the mistake, which almost for sure locates on my side, please point me into the right direction. The idea behinds gets me crazy when failing.

Imagef

What do you think would make the experience easier for you?

Maybe more about termux intent script in the documentation page

App version

3.2.1-foss 132

Device model and manufacturer

oneplus android 15

Extra info

  • My device is rooted

Metadata

Metadata

Assignees

Labels

needs triageuser experienceissues related to use, usability, ease of understanding

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions