diff --git a/frontend/ui/uimanager.lua b/frontend/ui/uimanager.lua index c527ad22c..0a4f5306c 100644 --- a/frontend/ui/uimanager.lua +++ b/frontend/ui/uimanager.lua @@ -92,7 +92,7 @@ function UIManager:init() if (input_event == "Power" or input_event == "Suspend") and not Device.screen_saver_mode then if not UIManager.suspend_msg then - if KOBO_SCREEN_SAVER then + if type(KOBO_SCREEN_SAVER) == "string" then local file = KOBO_SCREEN_SAVER if lfs.attributes(file, "mode") == "directory" then if string.sub(file,string.len(file)) ~= "/" then