You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thank you very much for sharing this VALUABLE project!!!
I'm using it and it's working perfectly, the only one problem I have is that it ask me 3 times one after another for the password in order to let me login.
It asks 3 times because I executed the install script 3 times actually :)
First after the installation I closed the termux and after the new start I was not asked for pass, because of that I installed it for a second time ... LOL :)
After that I closed and checked if termux have been closed and after that after the start it asked me for the pass ... 2 times :)
hmmm I removed the etc/.login directory and installed again and now I'm asked 3 time to enter the pass in order to login ... :) :) :)
I have checked the install script, the login script and actually can't find where and way all this phenomenon happens :)
Goof Luck! TX!
The text was updated successfully, but these errors were encountered:
OK, found the problem! :)
in file
/data/data/com.termux/files/usr/bin/login
I had 2 lines
python3 /data/data/com.termux/files/usr/etc/.login/login
python3 /data/data/com.termux/files/usr/etc/.login/login
because I run the installation few times one after another NOT knowing how cleanly to uninstall
Actually in the Readme.md there is no info about the
tlock --uninstall
:)
My suggestion is to add a check if the line exists before inserting it again.
Bellow is a simple check added (suggested by ChatGPT) :)
def addline(filename, new_line):
# Open the file and read all lines
with open(filename, 'r') as file:
lines = file.readlines()
# Check if the new line already exists in the file
if new_line not in lines:
# If the line doesn't exist, write it at the beginning of the file
with open(filename, 'w') as file:
file.write(lines[0])
file.write(new_line + '\n')
for line in lines[1:]:
file.write(line)
else:
# If the line exists, just rewrite the file without adding the line
with open(filename, 'w') as file:
for line in lines:
file.write(line)
Hello, thank you very much for sharing this VALUABLE project!!!
I'm using it and it's working perfectly, the only one problem I have is that it ask me 3 times one after another for the password in order to let me login.
It asks 3 times because I executed the install script 3 times actually :)
First after the installation I closed the termux and after the new start I was not asked for pass, because of that I installed it for a second time ... LOL :)
After that I closed and checked if termux have been closed and after that after the start it asked me for the pass ... 2 times :)
hmmm I removed the etc/.login directory and installed again and now I'm asked 3 time to enter the pass in order to login ... :) :) :)
I have checked the install script, the login script and actually can't find where and way all this phenomenon happens :)
Goof Luck! TX!
The text was updated successfully, but these errors were encountered: