depot/pkgs/by-name/gn/gnome-system-monitor/fix-paths.patch
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00: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);
}