Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7754909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:25:58+00:00 2026-06-01T12:25:58+00:00

We have an application that we have built as a bundle and we want

  • 0

We have an application that we have built as a bundle and we want to launch it from another process.

How should we do it?
From what I understand we can use openUrls(), openFile() or execve()
but I don’t know which one better suits us.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T12:25:59+00:00Added an answer on June 1, 2026 at 12:25 pm

    Since you’re talking about an application, you don’t want to go through the file association mechanisms. They’re for opening documents, images etc. with an appropriate application. Since you don’t seem to be sure what to ask, I’d say keep it simple:

    The exec* family launches an executable directly. But note that it replaces the launching process with the launched application. Your launcher will stop executing at that point. If you want the launcher to continue to run, you want to use something that launches a subprocess. The low-level way is fork/vfork followed by exec, but it’s far simpler to launch your app with system, which takes care of all that behind the scenes. (Assuming there are no security concerns about users on the other side of the world injecting execution paths).

    If the launcher does not terminate as soon as it launches your app, you’ll want to think about whether it “blocks” until the launched application terminates, or whether it launches the app asynchronously– so that they then run in parallel. The launcher might also “wait” for the return value of the app, to check whether it succeeded and maybe do something afterwards. There are ways to do all that, but since we don’t know what you need, I won’t go into details.

    In short: If the only job of your launcher is to start your app, use execl. If your launcher needs to do more, use system. If neither one quite fits your needs, you’ll need to provide more information– starting with the language your launcher is written in.

    PS. Both of these have the advantage of generality and portability. They work for GUI and commandline applications, and they’ll work on any Unix-like system, and to some extent on Windows. There’s no need to lock yourself into Cocoa for something so simple.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that will accept URLs from the built in web browser
I have an already built application and I want to add a feature that
I have a PHP application that is built around the MVC architecture without any
I have an application that runs on a client's server built on a SQL
We have built a web application that accepts SOAP messages, does some processing, calls
I have built a Java application that has some dependencies (~10). I would like
I have a simple Android application that uses a JAR I have built. When
I have built a web application using Java EE platform that sells one of
We have built a hosted web application, that is developed in a way that
I have an application I've built that uses a non-Java executable that it calls

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.