From 990b6768f4cd51a58ffb2b1417017c9da7e6e173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Fern=C3=A1ndez?= <975883+pazos@users.noreply.github.com> Date: Sun, 25 Jul 2021 23:29:30 +0200 Subject: [PATCH] disable battery level on desktop Linux (#8026) This also include ChromeOS laptops (chromebooks) since the power sysfs attributes don't exist in linux containers. --- frontend/device/sdl/device.lua | 2 +- platform/debian/do_debian_package.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/device/sdl/device.lua b/frontend/device/sdl/device.lua index 9723bc887..0799c5cc1 100644 --- a/frontend/device/sdl/device.lua +++ b/frontend/device/sdl/device.lua @@ -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, diff --git a/platform/debian/do_debian_package.sh b/platform/debian/do_debian_package.sh index 8a57519cc..0be09c495 100755 --- a/platform/debian/do_debian_package.sh +++ b/platform/debian/do_debian_package.sh @@ -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