[gnome-settings-daemon] updates: Fix calling pkexec as g_spawn_sync() does not look in the path by default
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] updates: Fix calling pkexec as g_spawn_sync() does not look in the path by default
- Date: Mon, 9 Jul 2012 10:21:11 +0000 (UTC)
commit da7a0f17ee3f08049be54d74c6b30f05713b5627
Author: Richard Hughes <richard hughsie com>
Date: Mon Jul 9 10:53:40 2012 +0100
updates: Fix calling pkexec as g_spawn_sync() does not look in the path by default
plugins/updates/gsd-updates-firmware.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/updates/gsd-updates-firmware.c b/plugins/updates/gsd-updates-firmware.c
index c171cd4..dc972a5 100644
--- a/plugins/updates/gsd-updates-firmware.c
+++ b/plugins/updates/gsd-updates-firmware.c
@@ -184,7 +184,7 @@ device_rebind (GsdUpdatesFirmware *firmware)
g_string_set_size (string, string->len-1);
/* use PolicyKit to do this as root */
- argv[0] = "pkexec";
+ argv[0] = BINDIR "/pkexec";
argv[1] = GSD_UPDATES_FIRMWARE_DEVICE_REBIND_PROGRAM;
argv[2] = string->str;
argv[3] = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]