mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
disable battery level on desktop Linux (#8026)
This also include ChromeOS laptops (chromebooks) since the power sysfs attributes don't exist in linux containers.
This commit is contained in:
@@ -55,7 +55,7 @@ local Device = Generic:new{
|
||||
model = "SDL",
|
||||
isSDL = yes,
|
||||
home_dir = os.getenv("XDG_DOCUMENTS_DIR") or os.getenv("HOME"),
|
||||
hasBattery = SDL.getPowerInfo(),
|
||||
hasBattery = SDL.getPowerInfo,
|
||||
hasKeyboard = yes,
|
||||
hasKeys = yes,
|
||||
hasDPad = yes,
|
||||
|
||||
@@ -79,7 +79,6 @@ if command_exists "${COMMAND}"; then
|
||||
find "${BASE_DIR}" -type d -print0 | xargs -0 chmod 755
|
||||
find "${BASE_DIR}" -executable -type f -print0 | xargs -0 chmod 755
|
||||
find "${BASE_DIR}" -type f -name "*.cff" -print0 | xargs -0 chmod 644
|
||||
find "${BASE_DIR}" -type f -name "*.crt" -print0 | xargs -0 chmod 644
|
||||
find "${BASE_DIR}" -type f -name "*.html" -print0 | xargs -0 chmod 644
|
||||
find "${BASE_DIR}" -type f -name "*.lua" -print0 | xargs -0 chmod 644
|
||||
find "${BASE_DIR}" -type f -name "*manifest" -print0 | xargs -0 chmod 644
|
||||
|
||||
Reference in New Issue
Block a user