summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Hughart <mekius@mekius.net>2012-09-13 20:50:40 +0000
committerNicholas Hughart <mekius@mekius.net>2012-09-13 20:50:40 +0000
commit874187fbdbe10f4ddbcf7a0bb3db5575ac1fad9e (patch)
tree3ff40517d4a9c8128a3ae4b6e8e35f8455d60dd7
parent337369e7cf43f4948fd3a135bbe065fe1881aa8e (diff)
Use libexecdir to determine location of polkit helper binary.
SVN revision: 76628
-rw-r--r--src/bin/Makefile.am1
-rw-r--r--src/bin/pka.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am
index 18a55af..809efb4 100644
--- a/src/bin/Makefile.am
+++ b/src/bin/Makefile.am
@@ -3,6 +3,7 @@
3AM_CPPFLAGS = -I$(top_srcdir) \ 3AM_CPPFLAGS = -I$(top_srcdir) \
4 -DPACKAGE_BIN_DIR=\"$(bindir)\" \ 4 -DPACKAGE_BIN_DIR=\"$(bindir)\" \
5 -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" \ 5 -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" \
6 -DPACKAGE_LIBEXEC_DIR=\"$(libexecdir)\" \
6 -Wall -Werror 7 -Wall -Werror
7 8
8bin_PROGRAMS = empower 9bin_PROGRAMS = empower
diff --git a/src/bin/pka.c b/src/bin/pka.c
index b131cd2..7354d60 100644
--- a/src/bin/pka.c
+++ b/src/bin/pka.c
@@ -162,7 +162,7 @@ pka_exec(Empower_Auth_Info *info)
162 162
163 // Run helper agent provided with polkit. 163 // Run helper agent provided with polkit.
164 // TODO: Somehow determine polkit-agent-helper-1 location at runtime. 164 // TODO: Somehow determine polkit-agent-helper-1 location at runtime.
165 snprintf(buf, sizeof(buf), "/usr/lib/polkit-1/polkit-agent-helper-1 %s %s", id->details.user.name, info->cookie); 165 snprintf(buf, sizeof(buf), PACKAGE_LIBEXEC_DIR"/polkit-1/polkit-agent-helper-1 %s %s", id->details.user.name, info->cookie);
166 DBG("Executing: %s\n", buf); 166 DBG("Executing: %s\n", buf);
167 info->helper.exe = ecore_exe_pipe_run(buf, 167 info->helper.exe = ecore_exe_pipe_run(buf,
168 (ECORE_EXE_PIPE_READ | 168 (ECORE_EXE_PIPE_READ |