mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Pocketbook: Launcher OS integration (#6620)
* Bring in restart koreader & shutdown device exit options * Existing instance reused for opens via native book explorer
This commit is contained in:
@@ -321,6 +321,14 @@ end
|
||||
|
||||
-- Exit
|
||||
local function exitReader()
|
||||
-- Exit code can be shoddy on some platforms due to broken library dtors calling _exit(0) from os.exit(N)
|
||||
local ko_exit = os.getenv("KO_EXIT_CODE")
|
||||
if ko_exit then
|
||||
local fo = io.open(ko_exit, "w+")
|
||||
fo:write(tostring(exit_code))
|
||||
fo:close()
|
||||
end
|
||||
|
||||
local ReaderActivityIndicator =
|
||||
require("apps/reader/modules/readeractivityindicator")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user