summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2009-09-04 00:36:18 -0700
committerJeremy Huddleston <jeremyhu@freedesktop.org>2009-09-04 00:36:18 -0700
commit98c7700d5bff9e61a7f29d8a611edc8a34961e8e (patch)
tree4195989e07aa856c28e0c3261b239287b9f98db1
parent49b50db0cb1ecc5611a242d12b9ca05b961c91ac (diff)
launchd: Update the DISPLAY envvar to not have a - ... call me paranoid, but I feel safer without it
Also added some extra debugging fluff to distingush between two similar statements.
-rw-r--r--org.x.startx.plist.cpp2
-rw-r--r--privileged_startx/client.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/org.x.startx.plist.cpp b/org.x.startx.plist.cpp
index 845ce0e..bd4c9e9 100644
--- a/org.x.startx.plist.cpp
+++ b/org.x.startx.plist.cpp
@@ -10,7 +10,7 @@
</array>
<key>Sockets</key>
<dict>
- <key>LAUNCHD_ID_PREFIX-:0</key>
+ <key>LAUNCHD_ID_PREFIX:0</key>
<dict>
<key>SecureSocketWithKey</key>
<string>DISPLAY</string>
diff --git a/privileged_startx/client.c b/privileged_startx/client.c
index a33dd02..8e1a771 100644
--- a/privileged_startx/client.c
+++ b/privileged_startx/client.c
@@ -45,9 +45,9 @@ int client_main(void) {
kr = bootstrap_look_up(bootstrap_port, BOOTSTRAP_NAME, &mp);
if (kr != KERN_SUCCESS) {
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
- fprintf(stderr, "bootstrap_look_up(): %s\n", bootstrap_strerror(kr));
+ fprintf(stderr, "privileged_startx: bootstrap_look_up(%s): %s\n", BOOTSTRAP_NAME, bootstrap_strerror(kr));
#else
- fprintf(stderr, "bootstrap_look_up(): %ul\n", (unsigned long)kr);
+ fprintf(stderr, "privileged_startx: bootstrap_look_up(%s): %ul\n", BOOTSTRAP_NAME, (unsigned long)kr);
#endif
exit(EXIT_FAILURE);
}