Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-45276

Launching server on Mac OS X as daemon requires active window server

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.7.4
    • Mac OS X 10.9.1, Java 1.6.0_65
    • Unconfirmed
    • Survival

      When the Java server is run on Mac OS X as a daemon, it attempts to access the window system. It fails to launch and results in the following messages:

      Jan 18 19:20:14 domain.com java[552]: Untrusted apps are not allowed to connect to Window Server before login.
      Jan 18 19:20:14 domain.com java[552]: This user is not allowed access to the window system right now.

      Please see the following:

      http://stackoverflow.com/questions/18603055/getting-a-mac-to-trust-an-application-synergy-on-loginwindow
      https://developer.apple.com/library/mac/technotes/tn2083/_index.html#//apple_ref/doc/uid/DTS10003794-CH1-SUBSECTION14

      A daemon MUST NOT access the window server prior to login. To fix the problem, the server binary should be stripped of any GUI related code; it should never attempt to access the window system.

      If necessary, I can provide the relevant launch daemon plist files and associated scripts needed to recreate the issue.

      In response to the question below (can't add comments after it's marked as resolved) yes, '--nogui' works, 'nogui' fails and causes the error.

            Unassigned Unassigned
            rainmannoodles Rainman Noodles
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: