
Running apps in Mac OSX start a application called X11
Posted Saturday, 7 November, 2009 - 10:03 by VeliV| Project: | The Open Toolkit library |
| Version: | 1.0-beta-1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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; CenterToScreen(); glControl.Dock = DockStyle.Fill; // I hope I got this right glControl.Paint += (sender, e) => { GL.ClearColor(Color.Black); glControl.SwapBuffers(); }; Controls.Add(glControl); } }
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


Comments
#1
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.
#2
Works now without that starting. Thanks again ;)
#3
#4
Closing issues fixed in 1.0 beta-1.