[Bug]: termux.properties doesn't work when it's a symlink
Problem description
Steps to reproduce the behavior.
.
What is the expected behavior?
No response
System information
- Termux application version: 0.118.0+36d811e
- Android OS version: 11
https://github.com/termux/termux-app/actions/runs/10929630705
That's not allowed due to security reasons as symlinks could be created to public directories. Restriction might be eased in future if possible.
That is the expected behavior.
Termux expects to be operating on a file, not a symlink, for termux.properties.
https://github.com/termux/termux-app/blob/36d811ea7d6b0e76a6860e58cd08b0a24bf9f69a/termux-shared/src/main/java/com/termux/shared/termux/TermuxConstants.java#L720-L728
As you can see in the snippet above, if you don't want to use the location in ~/.termux/termux.properties you can alternatively use ~/.config/termux/termux.properties