depot/third_party/nixpkgs/pkgs/by-name/gn/gnome-system-monitor/fix-paths.patch
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

12 lines
454 B
Diff

diff --git a/src/gsm_pkexec.cpp b/src/gsm_pkexec.cpp
index 5e1edf2f..717d7bf1 100644
--- a/src/gsm_pkexec.cpp
+++ b/src/gsm_pkexec.cpp
@@ -36,5 +36,6 @@ 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);
}