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:
chrox
2015-03-12 16:29:15 +08:00
parent 3224eb1797
commit 69e6b6b9cb
2 changed files with 55 additions and 41 deletions

View File

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