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:
Martín Fernández
2021-07-25 23:29:30 +02:00
committed by GitHub
parent 9bb6b70c7a
commit 990b6768f4
2 changed files with 1 additions and 2 deletions

View File

@@ -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,

View File

@@ -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