Bug 94565

Summary: XQuartz does not start - FairPlay decryption failed on binary
Product: XQuartz Reporter: Ed Robinson <ed>
Component: New BugsAssignee: Jeremy Huddleston Sequoia <jeremyhu>
Status: RESOLVED WORKSFORME QA Contact: Jeremy Huddleston Sequoia <jeremyhu>
Severity: normal    
Priority: medium CC: ed
Version: 2.7.8 (xserver-1.16.4)   
Hardware: x86-64 (AMD64)   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:

Description Ed Robinson 2016-03-16 07:53:45 UTC
Expected Behaviour: When I launch XQuartz.app with finder I should see something open in the dock, and an xterm window open, along with a XQuartz specific menu at the top of the screen.

Actual: Nothing happens when launching XQuartz.app

Software: OSX El Captain (10.11.3)
Hardware: MacBook Pro (Retina, Mid 2012) i7


I am not sure where I should be looking for relevant logs, this is what is output to system log:

---- snip ----
16/03/2016 07:50:54.038 org.macosforge.xquartz.X11.stub[5257]: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
16/03/2016 07:50:56.039 org.macosforge.xquartz.startx[5133]: 
16/03/2016 07:50:58.043 org.macosforge.xquartz.startx[5133]: waiting for X server to begin accepting connections 
16/03/2016 07:51:00.048 org.macosforge.xquartz.startx[5133]: waiting for X server to begin accepting connections 
16/03/2016 07:51:02.058 org.macosforge.xquartz.startx[5133]: waiting for X server to begin accepting connections 
16/03/2016 07:51:04.067 org.macosforge.xquartz.startx[5133]: waiting for X server to begin accepting connections 
16/03/2016 07:51:06.074 org.macosforge.xquartz.startx[5133]: waiting for X server to begin accepting connections 
16/03/2016 07:51:08.082 org.macosforge.xquartz.startx[5133]: waiting for X server to begin accepting connections 
16/03/2016 07:51:10.087 org.macosforge.xquartz.startx[5133]: waiting for X server to begin accepting connections 
16/03/2016 07:51:12.093 org.macosforge.xquartz.startx[5133]: waiting for X server to begin accepting connections 
16/03/2016 07:51:14.101 org.macosforge.xquartz.startx[5133]: waiting for X server to begin accepting connections 
16/03/2016 07:51:14.280 org.macosforge.xquartz.X11.stub[5250]: Xquartz: bootstrap_look_up(): Unknown service name
16/03/2016 07:51:15.107 org.macosforge.xquartz.startx[5133]: waiting for X server to begin accepting connections 
16/03/2016 07:51:15.108 org.macosforge.xquartz.startx[5133]: /opt/X11/bin/xinit: giving up
16/03/2016 07:51:15.108 org.macosforge.xquartz.startx[5133]: /opt/X11/bin/xinit: unable to connect to X server: Operation timed out
16/03/2016 07:51:15.108 org.macosforge.xquartz.startx[5133]: /opt/X11/bin/xinit: server error
16/03/2016 07:51:15.120 org.macosforge.xquartz.startx[5133]: /opt/X11/bin/xinit: unable to connect to X server
16/03/2016 07:51:15.121 com.apple.xpc.launchd[1]: (org.macosforge.xquartz.startx[5133]) FairPlay decryption failed on binary.
16/03/2016 07:51:15.421 org.macosforge.xquartz.startx[5312]: expr: syntax error
16/03/2016 07:51:15.423 org.macosforge.xquartz.startx[5312]: expr: syntax error
16/03/2016 07:51:15.439 org.macosforge.xquartz.startx[5312]: xauth:  file /Users/ed/.serverauth.5313 does not exist
16/03/2016 07:51:15.487 org.macosforge.xquartz.X11.stub[5429]: Xquartz: Unable to locate waiting server: org.macosforge.xquartz.X11
Comment 1 Ed Robinson 2016-03-16 08:19:07 UTC
Ok so it seems to be related to my default shell being zsh.

adding a ~/.x11run with a bash shebang fixes things

Looking at /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 it looks like it is trying to support a bunch of different shells.... wouldn't it be safer just to always use bash in this script?
---snip---

#! /bin/bash
exec /Applications/Utilities/XQuartz.app/Contents/MacOS/X11.bin - /Applications/Utilities/XQuartz.app/Contents/MacOS/X11.bin
Comment 2 Jeremy Huddleston Sequoia 2016-03-16 08:45:29 UTC
No, the point of the script is to spawn the server in a login environment for the user's default shell.

AFAIK, zsh should work fine with it.  What was the problem?  Can you offer a solution?

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.