[Kindle NT] fix terminal and timesync#12765
Conversation
|
Tested on Kindle 4 NT, all good. |
|
Tested again on K4NT, all good |
|
Now both |
forgot to remove the old implementation Co-authored-by: Benoit Pierre <benoit.pierre@gmail.com>
|
First macos check failed ¯\(ツ)/¯ |
|
|
||
| function util.isExecutable(file) | ||
| local attrs = lfs.attributes(file) | ||
| return attrs and attrs.mode == "file" and os.execute("test -x " .. file) == 0 |
There was a problem hiding this comment.
Note that elsewhere it's written as attr
Lines 793 to 799 in bb23ed0
But my actual point, is there a particular reason not to do something like this?
local permissions = attr.permissions
return permissions:match("x") ~= nilThere was a problem hiding this comment.
The value will look like, for example: rwxr-xr-x
There was a problem hiding this comment.
I don't know myself. @benoit-pierre can you please comment on this?
There was a problem hiding this comment.
No, this is meaningless without taking into account file ownership and the effective user and group id of the current process.
We have access to access :P. Let me check if if can export the other necessary defines beside F_OK and use that instead.
There was a problem hiding this comment.
No, this is meaningless
Emphasis on something like, of course.
There was a problem hiding this comment.
Thanks!
I am currently working on GH from web browser, I'll try to make these diffs carefully by hand :D
There was a problem hiding this comment.
Done.
Can someone please bump base?
Or please show me show to do it from the browser?
There was a problem hiding this comment.
getcwd: cannot access parent directories
Do you think this is because Android, and you have no access to /bin, where from bash is trying to start?
https://stackoverflow.com/questions/29396928/error-retrieving-current-directory-getcwd-cannot-access-parent-directories
There was a problem hiding this comment.
There was a problem hiding this comment.
Bash is actually in /system/xbin/bash on that system. But yeah, I don't know.
|
I synced this branch to prepare for merging. |
|
Waiting on one more base-bump with this: koreader/koreader-base#1983 (comment) Otherwise, ready for review (and merge) |
There's no need to wait for that since |
|
Ready to merge? The thing is, I don't have my VM right now, I can't test base changes. |
NiLuJe
left a comment
There was a problem hiding this comment.
No time to test much of anything right now, but I don't see anything that could cause issues on kobo, at a quick glance.
Closes koreader#12760 Credits go to @benoit-pierre (Thank you!)
Closes #12760
Credits go to @benoit-pierre (Thank you!)
@NiLuJe
Can you please give it a quick glance to make sure Kobo won't suffer from this?
I don't have any other devices to test, so please let me know if there are issues:
This change is