termux-app icon indicating copy to clipboard operation
termux-app copied to clipboard

[Bug]: termux.properties doesn't work when it's a symlink

Open xronin01 opened this issue 1 year ago • 3 comments

Problem description

Screenshot_20240918-203954_Termux

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

xronin01 avatar Sep 18 '24 23:09 xronin01

https://github.com/termux/termux-app/actions/runs/10929630705

xronin01 avatar Sep 18 '24 23:09 xronin01

That's not allowed due to security reasons as symlinks could be created to public directories. Restriction might be eased in future if possible.

agnostic-apollo avatar Sep 18 '24 23:09 agnostic-apollo

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

TomJo2000 avatar Sep 19 '24 00:09 TomJo2000