blob: ab6e845ae4bf37186328537fb2fae05ff31d8c29 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff --git a/src/gsm_pkexec.cpp b/src/gsm_pkexec.cpp
index 868969ba..51eb93b5 100644
--- a/src/gsm_pkexec.cpp
+++ b/src/gsm_pkexec.cpp
@@ -33,6 +33,7 @@ gboolean gsm_pkexec_create_root_password_dialog(const char *command)
gboolean
procman_has_pkexec(void)
{
- return g_file_test("/usr/bin/pkexec", G_FILE_TEST_EXISTS);
+ return g_file_test("/run/wrappers/bin/pkexec", G_FILE_TEST_EXISTS)
+ || g_file_test("/usr/bin/pkexec", G_FILE_TEST_EXISTS);
}
|