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:
ezdiy
2020-09-01 21:43:21 +02:00
committed by GitHub
parent c9a339ead0
commit 4857e97e30
3 changed files with 49 additions and 6 deletions

View File

@@ -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")