termux / termux/termux-api

termux-storage-getfile returns immediately

Open
#68 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

From @omilu on February 19, 2017 17:5

termux-storage-getfile returns immediately. This makes it hard to use in a script because the script continues before the user has selected a file from the dialog. termux-storage-getfile should only return after the user has selected a file, and should have return value to indicate if user cancelled operation or not.

Copied from original issue: termux/termux-app#258

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

Locate the implementation and entry point for termux-storage-getfile, then inspect how it launches and waits for the selection dialog. Reproduce a script invocation; done means the command waits for the user's choice and reports cancellation versus selection through its return value.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.