Change JavawsLauncher.app to use NSTask or execv

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: None
    • Component/s: deploy
    • b89
    • os_x

        Chris Ries requested changing the call to system to execv, but NSTask is just as good.

        In AppDelegate.m change the call to system to either NSTask or execv. URLs could have spaces which would be a potential vulnerability. Here is an example of NSTask:

            NSTask *task = [[NSTask alloc] init];
            task.launchPath = @"/Library/Internet\\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/javaws";
            task.arguments = @[url];
            [task launch];

              Assignee:
              Chris Bensen (Inactive)
              Reporter:
              Chris Bensen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: