VeliV's picture

Running apps in Mac OSX start a application called X11

Project:The Open Toolkit library
Category:bug report

Is this intentional? Latest OSX, latest mono, trunk build.

using System;
using System.Windows.Forms;
using System.Drawing;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL;
public class HelloWorld : Form
  OpenTK.GLControl glControl = new OpenTK.GLControl();
  static public void Main()
    Application.Run(new HelloWorld());
  	public HelloWorld()
	    Text = "Hello World";
		Height = 600;
		Width = 800;
		glControl.Dock = DockStyle.Fill; // I hope I got this right     
	    glControl.Paint += (sender, e) =>

It starts up a X11 application to the dock and it doesn't quit after I kill my own app. Any way to prevent that from starting? :D


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture


Status:open» in progress (review)

X11 is a component present on most Unix systems, including Mac OS X. It seems that OpenTK's platform detection code is causing X11 to initialize itself, even though we do not actually use it on Mac OS X (we rely on native APIs instead).

I've added a workaround to rev. 2470, which avoids detecting X11 if we are running on Mac OS X. This should fix the issue.

VeliV's picture


Works now without that starting. Thanks again ;)

the Fiddler's picture


Status:in progress (review)» fixed
the Fiddler's picture


Version:0.9.x-dev» 1.0-beta-1
Status:fixed» closed

Closing issues fixed in 1.0 beta-1.