termux-play-store / termux-issues

Issues for the Play Store build of Termux
4 stars 13 forks source link

[Bug]: Files not displayed in list #18

Closed MikieAC closed 3 months ago

MikieAC commented 3 months ago

Problem description

Only directories are shown in the LS command. Files are not displayed.

Also, the following script refuses to return any files:

show selection

for f in *; do echo "Item -> $f" done

What steps will reproduce the bug?

Perform the LS command in any directory that contains files. The files will not be displayed.

What is the expected behavior?

Files should be shown

System information

.../0/Download $ termux-info
Termux Variables:
TERMUX_EXEC__PROC_SELF_EXE=/data/data/com.termux/files/usr/bin/termux-info
TERMUX_VERSION=0.129
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.net stable main
Updatable packages:
All packages up to date
termux-tools version:
3.0.7
Android version:
13
Kernel build information:
Linux localhost 4.19.113-27223811 #1 SMP PREEMPT Tue May 28 13:43:06 KST 2024 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-G781V
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
.../0/Download $
MikieAC commented 3 months ago

There are 250 .jpg files in this directory, but none of them show up

Screenshot_20240624_100754_Termux

fornwall commented 3 months ago

Hi! Can you try running termux-setup-storage once more, give Termux the All files access in the resulting dialog and try again?

If that doesn't make the .jpg files show up, does ls show a simple file? As in, what is the output of running the below?

touch ~/new-file
ls ~/
MikieAC commented 3 months ago

Turns out, you can't do it from inside Termux... You have to select:

Settings > Apps

Then click the hamburger and select:

Special Access

Screenshot_20240624_141426_Settings

And then select:

All file access

Screenshot_20240624_141209_Settings

And then turn the slider ON for Termux (the slider is OFF after installation)

MikieAC commented 3 months ago

Closed