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:
1 parent
9bb6b70c7a
commit
990b6768f4
2 files changed
+1
-2
No files matched your search
@@ -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