Skip to content

crashes if ~/.config/koreader/default.lua does not exist #9593

Description

@akemnade
  • KOReader version: v2022.08-55-g68b26c3a_2022-10-04 (self-build using ./kodev release debian)
  • Device: Laptop wit Debian bullseye

Issue

andi@aktux:~$ koreader 
---------------------------------------------
                launching...
  _  _____  ____                _
 | |/ / _ \|  _ \ ___  __ _  __| | ___ _ __
 | ' / | | | |_) / _ \/ _` |/ _` |/ _ \ '__|
 | . \ |_| |  _ <  __/ (_| | (_| |  __/ |
 |_|\_\___/|_| \_\___|\__,_|\__,_|\___|_|

 It's a scroll... It's a codex... It's KOReader!

 [*] Current time: 10/05/22-08:22:53
 [*] Version: v2022.08-55-g68b26c3a_2022-10-04

ffi.load: libs/libutf8proc.so.2
/usr/lib/koreader/luajit: frontend/luadefaults.lua:57: Failed reading /home/andi/.config/koreader/defaults.lua
stack traceback:
	[C]: in function 'error'
	frontend/luadefaults.lua:57: in function 'open'
	./reader.lua:36: in main chunk
	[C]: at 0x558e417fb330

Steps to reproduce

rm -rf .config/koreader
koreader

copying over defaults.lua from /usr/lib//koreader helps

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions