termux-share shares the file as "datastream"
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.3k
- Forks
- 920
- PR merge metrics
- No merged PRs in 30d
Description
I thought of termux-share as kde-open or gnome-open or cygstart. However, its behavior is different. When I open a text file using termux-share (as in example below), my editor (QuickEdit Pro) receives a file with url
content://com.termux.sharedfiles//storage/emulated/0/x.txt, which the editor app cannot save.
However, when I locate the file in a file manager and then open it, the url is correct
/storage/emulated/0/x.txt, and the editor app can save my changes.
How can termux-share open files in other apps just like my file manager does.
$ ls
x.txt
$termux-share x.txt
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the termux-share entry point and inspect how it sends a shared file to another Android app. Reproduce the example with x.txt, compare the content:// URL with the path produced by a file manager, and verify that the receiving editor can save changes using the corrected sharing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100