#220 XDarwin has no creator code

Feature Suggestion
X server (105)

XDarwin's bundle signature is "????". This is a generic signature used by default when an application is first created.

Someone needs to register a creator code with Apple so that XDarwin will be a first class Mac application.

An example of the problem this causes is, I can't use the LSGetApplicationForInfo() API to launch XDarwin in a tool that I'm writing.


  • Torrey T. Lyons

    Torrey T. Lyons - 2002-11-11
    • assigned_to: nobody --> torrey
  • Torrey T. Lyons

    Torrey T. Lyons - 2002-11-11

    Logged In: YES

    Most Carbon applications need Creator codes, but many Cocoa apps only have identifiers. Creator codes are only useful on HFS+ volumes. XDarwin's identifier is "org.xfree86.XDarwin". You can launch XDarwin using code such as the following from XDarwinStartup.c:

    theStatus = LSFindApplicationForInfo(kLSUnknownCreator,
    NULL, NULL, &appURL);
    if (theStatus) {
    fprintf(stderr, "Could not find the XDarwin application. (Error = 0x%lx)\n", theStatus);
    fprintf(stderr, "Launch XDarwin once from the Finder.\n");
    return theStatus;

    appPath = CFURLCopyFileSystemPath (appURL, kCFURLPOSIXPathStyle);
    success = CFStringGetCString(appPath, quartzPath, PATH_MAX, CFStringGetSystemEncoding());
    if (! success) {
    fprintf(stderr, "Could not find path to XDarwin application.\n");
    return success;

    // Launch the XDarwin application
    strncat(quartzPath, "/Contents/MacOS/XDarwin", PATH_MAX);
    newargv[0] = quartzPath;
    execv(newargv[0], newargv);
    fprintf(stderr, "Could not start XDarwin application at %s.\n", newargv[0]);
    return errno;

  • Torrey T. Lyons

    Torrey T. Lyons - 2003-04-03
    • status: open --> closed-wont-fix
  • Torrey T. Lyons

    Torrey T. Lyons - 2003-04-03

    Logged In: YES

    Apparently my previous explanation about using identifiers is okay. Closing.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks