From b2f0fe1c5d6738fa982e276260cae2cf123b82d1 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Fri, 15 Mar 2013 22:12:19 -0400 Subject: [PATCH] when kpdf.sh start with no argument, it will actuall pass in "" --- reader.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reader.lua b/reader.lua index 2eb2f017b..8d622db74 100755 --- a/reader.lua +++ b/reader.lua @@ -214,7 +214,7 @@ local last_file = G_reader_settings:readSetting("lastfile") --87712cf0e43fed624f8a9f610be42b1fe174b9fe -if ARGV[argidx] then +if ARGV[argidx] and ARGV[argidx] ~= "" then if lfs.attributes(ARGV[argidx], "mode") == "directory" then showHomePage(ARGV[argidx]) elseif lfs.attributes(ARGV[argidx], "mode") == "file" then