summaryrefslogtreecommitdiff
path: root/launchd/user_startx
diff options
context:
space:
mode:
Diffstat (limited to 'launchd/user_startx')
-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
3 files changed, 8 insertions, 8 deletions
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>