summaryrefslogtreecommitdiff
path: root/launchd/org.x.X11.plist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'launchd/org.x.X11.plist.cpp')
-rw-r--r--launchd/org.x.X11.plist.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/launchd/org.x.X11.plist.cpp b/launchd/org.x.X11.plist.cpp
index 822f1f7..6aed8d8 100644
--- a/launchd/org.x.X11.plist.cpp
+++ b/launchd/org.x.X11.plist.cpp
@@ -6,9 +6,12 @@
<string>org.x.X11</string>
<key>ProgramArguments</key>
<array>
- <string>__bindir__/startx</string>
- <string>--</string>
+#ifdef __APPLE__
+ <string>__libexecdir__/x11-exec</string>
<string>-launchd</string>
+#else
+ <string>__bindir__/startx</string>
+#endif
</array>
<key>Sockets</key>
<dict>