mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-05 16:58:07 +02:00
Use a fallback for the capability bit when checking the lid status. Fixes #25041
This commit is contained in:
parent
7222042da3
commit
e93895a257
1 changed files with 6 additions and 1 deletions
|
|
@ -183,7 +183,12 @@ dkp_input_coldplug (DkpInput *input, DkpDaemon *daemon, GUdevDevice *d)
|
|||
path = g_build_filename (native_path, "../capabilities/sw", NULL);
|
||||
if (!g_file_test (path, G_FILE_TEST_EXISTS)) {
|
||||
egg_debug ("not a switch [%s]", path);
|
||||
goto out;
|
||||
g_free (path);
|
||||
path = g_build_filename (native_path, "capabilities/sw", NULL);
|
||||
if (!g_file_test (path, G_FILE_TEST_EXISTS)) {
|
||||
egg_debug ("not a switch [%s]", path);
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
/* get caps */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue