summaryrefslogtreecommitdiff
path: root/launchd/privileged_startx
diff options
context:
space:
mode:
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>2015-12-29 17:03:43 -0800
committerJeremy Huddleston Sequoia <jeremyhu@apple.com>2015-12-29 17:21:42 -0800
commit72160c42bea2073bf95c01aca59a12f0ca7ab707 (patch)
treec17eba5dafe77e9d92669220506f37601af1856e /launchd/privileged_startx
parent281b314f38564537279c94e605bee74ff41b0245 (diff)
launchd: Install binaries into libexecdir
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Diffstat (limited to 'launchd/privileged_startx')
-rw-r--r--launchd/privileged_startx/Makefile.am6
-rw-r--r--launchd/privileged_startx/privileged_startx.plist.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/launchd/privileged_startx/Makefile.am b/launchd/privileged_startx/Makefile.am
index 811cbdb..a6ed492 100644
--- a/launchd/privileged_startx/Makefile.am
+++ b/launchd/privileged_startx/Makefile.am
@@ -27,14 +27,14 @@
include $(top_srcdir)/cpprules.in
-xinitrcdir = $(libdir)/X11/xinit
+xinitrcdir = $(XINITDIR)
privstartxdir = $(xinitrcdir)/privileged_startx.d
-xinitrc_PROGRAMS = privileged_startx
+libexec_PROGRAMS = privileged_startx
privstartx_SCRIPTS = 10-tmpdirs 20-font_cache
AM_CPPFLAGS = -I$(srcdir)/.. -DXINITDIR=\"$(xinitrcdir)\" -DSCRIPTDIR=\"$(privstartxdir)\" -DBINDIR=\"$(bindir)\"
-CPP_FILES_FLAGS = -DXINITDIR="$(xinitrcdir)" -DSCRIPTDIR="$(privstartxdir)" -DBINDIR="$(bindir)" -DBUNDLE_ID_PREFIX="$(bundleidprefix)"
+CPP_FILES_FLAGS = -D__libexecdir__="$(libexecdir)" -DXINITDIR="$(xinitrcdir)" -DSCRIPTDIR="$(privstartxdir)" -DBINDIR="$(bindir)" -DBUNDLE_ID_PREFIX="$(bundleidprefix)"
if TIGER_LAUNCHD
CPP_FILES_FLAGS += -DTIGER_LAUNCHD
diff --git a/launchd/privileged_startx/privileged_startx.plist.cpp b/launchd/privileged_startx/privileged_startx.plist.cpp
index e23e892..e1652b0 100644
--- a/launchd/privileged_startx/privileged_startx.plist.cpp
+++ b/launchd/privileged_startx/privileged_startx.plist.cpp
@@ -6,7 +6,7 @@
<string>BUNDLE_ID_PREFIX.privileged_startx</string>
<key>ProgramArguments</key>
<array>
- <string>XINITDIR/privileged_startx</string>
+ <string>__libexecdir__/privileged_startx</string>
<string>-d</string>
<string>SCRIPTDIR</string>
</array>