summaryrefslogtreecommitdiff
path: root/launchd
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-05-11 00:24:45 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-05-11 00:24:45 -0700
commitc8b40e87f69f5be881725388418d703116af8e5f (patch)
tree2128cde77e3131f0fdba5f18a4915256335674b9 /launchd
parent50f1172349dc900da4016c243734ae50691eab6c (diff)
Rename launchd-id-prefix to bundle-id-prefix
It's used many other places than just for launchd. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'launchd')
-rw-r--r--launchd/privileged_startx/Makefile.am8
-rw-r--r--launchd/privileged_startx/privileged_startx.plist.cpp4
-rw-r--r--launchd/privileged_startx/privileged_startx_types.h2
-rw-r--r--launchd/privileged_startx/server.c2
-rw-r--r--launchd/user_startx/Makefile.am10
-rw-r--r--launchd/user_startx/launchd_startx.c2
-rw-r--r--launchd/user_startx/startx.plist.cpp4
7 files changed, 16 insertions, 16 deletions
diff --git a/launchd/privileged_startx/Makefile.am b/launchd/privileged_startx/Makefile.am
index d0f2322..c7cf0e8 100644
--- a/launchd/privileged_startx/Makefile.am
+++ b/launchd/privileged_startx/Makefile.am
@@ -34,7 +34,7 @@ xinitrc_PROGRAMS = privileged_startx
privstartx_SCRIPTS = 10-tmpdirs 20-font_cache
AM_CPPFLAGS = -DXINITDIR=\"$(xinitrcdir)\" -DSCRIPTDIR=\"$(privstartxdir)\" -DBINDIR=\"$(bindir)\"
-CPP_FILES_FLAGS = -DXINITDIR="$(xinitrcdir)" -DSCRIPTDIR="$(privstartxdir)" -DBINDIR="$(bindir)" -DLAUNCHD_ID_PREFIX="$(launchdidprefix)"
+CPP_FILES_FLAGS = -DXINITDIR="$(xinitrcdir)" -DSCRIPTDIR="$(privstartxdir)" -DBINDIR="$(bindir)" -DBUNDLE_ID_PREFIX="$(bundleidprefix)"
if TIGER_LAUNCHD
CPP_FILES_FLAGS += -DTIGER_LAUNCHD
@@ -56,10 +56,10 @@ BUILT_SOURCES = \
privileged_startxServer.h \
privileged_startx.h
-$(launchdidprefix).privileged_startx.plist.cpp: privileged_startx.plist.cpp
+$(bundleidprefix).privileged_startx.plist.cpp: privileged_startx.plist.cpp
cp $< $@
-launchdaemons_PRE = $(launchdidprefix).privileged_startx.plist.cpp
+launchdaemons_PRE = $(bundleidprefix).privileged_startx.plist.cpp
launchdaemons_DATA = $(launchdaemons_PRE:plist.cpp=plist)
10-tmpdirs: 10-tmpdirs.cpp Makefile
@@ -69,7 +69,7 @@ CLEANFILES = \
$(privstartx_SCRIPTS) \
$(BUILT_SOURCES) \
$(launchdaemons_DATA) \
- $(launchdidprefix).privileged_startx.plist.cpp
+ $(bundleidprefix).privileged_startx.plist.cpp
EXTRA_DIST = \
10-tmpdirs.cpp \
diff --git a/launchd/privileged_startx/privileged_startx.plist.cpp b/launchd/privileged_startx/privileged_startx.plist.cpp
index 02e1cce..533fc32 100644
--- a/launchd/privileged_startx/privileged_startx.plist.cpp
+++ b/launchd/privileged_startx/privileged_startx.plist.cpp
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>Label</key>
- <string>LAUNCHD_ID_PREFIX.privileged_startx</string>
+ <string>BUNDLE_ID_PREFIX.privileged_startx</string>
<key>ProgramArguments</key>
<array>
<string>XINITDIR/privileged_startx</string>
@@ -16,7 +16,7 @@
#else
<key>MachServices</key>
<dict>
- <key>LAUNCHD_ID_PREFIX.privileged_startx</key>
+ <key>BUNDLE_ID_PREFIX.privileged_startx</key>
<true/>
</dict>
<key>TimeOut</key>
diff --git a/launchd/privileged_startx/privileged_startx_types.h b/launchd/privileged_startx/privileged_startx_types.h
index 8928e64..a0d3439 100644
--- a/launchd/privileged_startx/privileged_startx_types.h
+++ b/launchd/privileged_startx/privileged_startx_types.h
@@ -5,6 +5,6 @@
#include <config.h>
#endif
-#define BOOTSTRAP_NAME LAUNCHD_ID_PREFIX".privileged_startx"
+#define BOOTSTRAP_NAME BUNDLE_ID_PREFIX".privileged_startx"
#endif
diff --git a/launchd/privileged_startx/server.c b/launchd/privileged_startx/server.c
index d513ec0..ff86935 100644
--- a/launchd/privileged_startx/server.c
+++ b/launchd/privileged_startx/server.c
@@ -171,7 +171,7 @@ int server_main(const char *dir) {
mp = launch_data_get_machport(svc);
#else
- mp = checkin_or_register(LAUNCHD_ID_PREFIX".privileged_startx");
+ mp = checkin_or_register(BUNDLE_ID_PREFIX".privileged_startx");
#endif
if (mp == MACH_PORT_NULL) {
diff --git a/launchd/user_startx/Makefile.am b/launchd/user_startx/Makefile.am
index 30270dd..75573da 100644
--- a/launchd/user_startx/Makefile.am
+++ b/launchd/user_startx/Makefile.am
@@ -25,7 +25,7 @@ xinitrcdir = $(XINITDIR)
xinitrc_PROGRAMS = launchd_startx
-AM_CPPFLAGS = -DXINITDIR=\"$(xinitrcdir)\" -DBINDIR=\"$(bindir)\" -DLAUNCHD_ID_PREFIX=\"$(launchdidprefix)\"
+AM_CPPFLAGS = -DXINITDIR=\"$(xinitrcdir)\" -DBINDIR=\"$(bindir)\" -DBUNDLE_ID_PREFIX=\"$(bundleidprefix)\"
dist_launchd_startx_SOURCES = \
../console_redirect.c \
@@ -34,16 +34,16 @@ dist_launchd_startx_SOURCES = \
CPP_FILES_FLAGS = \
-D__xinitrcdir__="$(xinitrcdir)" \
-D__bindir__="$(bindir)" \
- -DLAUNCHD_ID_PREFIX="$(launchdidprefix)"
+ -DBUNDLE_ID_PREFIX="$(bundleidprefix)"
-$(launchdidprefix).startx.plist.cpp: startx.plist.cpp
+$(bundleidprefix).startx.plist.cpp: startx.plist.cpp
cp $< $@
-launchagents_PRE = $(launchdidprefix).startx.plist.cpp
+launchagents_PRE = $(bundleidprefix).startx.plist.cpp
launchagents_DATA = $(launchagents_PRE:plist.cpp=plist)
EXTRA_DIST = startx.plist.cpp
CLEANFILES = \
$(launchagents_DATA) \
- $(launchdidprefix).startx.plist.cpp
+ $(bundleidprefix).startx.plist.cpp
diff --git a/launchd/user_startx/launchd_startx.c b/launchd/user_startx/launchd_startx.c
index 41d1511..976b2d7 100644
--- a/launchd/user_startx/launchd_startx.c
+++ b/launchd/user_startx/launchd_startx.c
@@ -48,7 +48,7 @@ int main(int argc, char **argv, char **envp) {
exit(EXIT_FAILURE);
}
- aslc = asl_open(LAUNCHD_ID_PREFIX".startx", "user", ASL_OPT_NO_DELAY);
+ aslc = asl_open(BUNDLE_ID_PREFIX".startx", "user", ASL_OPT_NO_DELAY);
(void)console_redirect(aslc, NULL, ASL_LEVEL_INFO, ASL_LEVEL_NOTICE);
assert(posix_spawnp(&child, argv[1], NULL, NULL, &argv[1], envp) == 0);
diff --git a/launchd/user_startx/startx.plist.cpp b/launchd/user_startx/startx.plist.cpp
index 1a87527..9d9c1a4 100644
--- a/launchd/user_startx/startx.plist.cpp
+++ b/launchd/user_startx/startx.plist.cpp
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>Label</key>
- <string>LAUNCHD_ID_PREFIX.startx</string>
+ <string>BUNDLE_ID_PREFIX.startx</string>
<key>ProgramArguments</key>
<array>
<string>__xinitrcdir__/launchd_startx</string>
@@ -11,7 +11,7 @@
</array>
<key>Sockets</key>
<dict>
- <key>LAUNCHD_ID_PREFIX:0</key>
+ <key>BUNDLE_ID_PREFIX:0</key>
<dict>
<key>SecureSocketWithKey</key>
<string>DISPLAY</string>