Some proot scripts will map /system into the proot environment. Still, a proot environment is virtually an "installation" of Linux distribution and thus has no getprop wrapper from Termux (/data/data/com.termux/files/usr/bin/getprop). Even if the vanilla getprop (/system/bin/getprop) is in PATH, it is very likely to crash in a proot environment.
The patch is to suppress errors during trying to getprop in order to make tzlocal not crash in a proot environment.
Some proot scripts will map
/system
into the proot environment. Still, a proot environment is virtually an "installation" of Linux distribution and thus has nogetprop
wrapper from Termux (/data/data/com.termux/files/usr/bin/getprop
). Even if the vanillagetprop
(/system/bin/getprop
) is inPATH
, it is very likely to crash in a proot environment.The patch is to suppress errors during trying to
getprop
in order to maketzlocal
not crash in a proot environment.