Skip to content

Commit

Permalink
Bootloader: OSX: Respect Info.plist options
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Jun 15, 2018
1 parent 56ee7e5 commit d63a0bb
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions bootloader/src/pyi_launch.c
Expand Up @@ -503,15 +503,7 @@ callSimpleEntryPoint(char *name, int *presult)
void
pyi_launch_initialize(ARCHIVE_STATUS * status)
{
#if defined(__APPLE__) && defined(WINDOWED)
/*
* On OS X this ensures that the application is handled as GUI app.
* Call TransformProcessType() in the child process.
*/
ProcessSerialNumber psn = { 0, kCurrentProcess };
OSStatus returnCode = TransformProcessType(&psn,
kProcessTransformToForegroundApplication);
#elif defined(_WIN32)
#if defined(_WIN32)
char * manifest;
manifest = pyi_arch_get_option(status, "pyi-windows-manifest-filename");

Expand All @@ -520,7 +512,7 @@ pyi_launch_initialize(ARCHIVE_STATUS * status)
CreateActContext(manifest);
free(manifest);
}
#endif /* if defined(__APPLE__) && defined(WINDOWED) */
#endif /* if defined(_WIN32) */
}

/*
Expand Down

0 comments on commit d63a0bb

Please sign in to comment.