Use a fallback for the capability bit when checking the lid status. Fixes #25041

This commit is contained in:
Richard Hughes 2010-01-11 15:56:53 +00:00
parent 7222042da3
commit e93895a257

View file

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