mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
hold on directory in filemanager can set the it as HOME directory
and this "HOME" directory will override the command line option passed to koreader. This patch implements #1434.
This commit is contained in:
@@ -138,7 +138,8 @@ if ARGV[argidx] and ARGV[argidx] ~= "" then
|
||||
-- the filemanger will show the files in that path
|
||||
else
|
||||
local FileManager = require("apps/filemanager/filemanager")
|
||||
FileManager:showFiles(ARGV[argidx])
|
||||
local home_dir = G_reader_settings:readSetting("home_dir") or ARGV[argidx]
|
||||
FileManager:showFiles(home_dir)
|
||||
end
|
||||
UIManager:run()
|
||||
elseif last_file then
|
||||
|
||||
Reference in New Issue
Block a user