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 9026155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:27:02+00:00 2026-06-16T06:27:02+00:00

I have an app running in OS X that needs to launch another executable

  • 0

I have an app running in OS X that needs to launch another executable with a GUI and then close itself leaving this other GUI intact.

Right now I’m launching the other executable with fork then execve and closing the app that launched it but the new executable keeps the menu bar from the app that just closed. This stops me from running the original app until I close the window for the executable.

The only thing I’ve found is people saying to use nohup but from what I understand that just stops the program from closing when the parent closes?

EDIT: After looking into the functions in the first answer, I realized I should have included some more details. I am using OS X 10.8 which seems to have deprecated a lot of the File Manager API. Another important detail is that I need to pass command line arguments to the executable.

  • 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-16T06:27:04+00:00Added an answer on June 16, 2026 at 6:27 am

    As it turns out, my executable I was trying to launch, which was originally in another app package, was using the plist file for the application that was launching the executable. I had the executable in the Contents/MacOS folder where the executable for the original application resided. After putting the other executable in its own app package, I was able to use fork and execve on the executable within its own package to launch it properly.

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

Sidebar

Related Questions

I have a BlackBerry app running in the background that needs to know when
I have a BlackBerry app running in the background that needs to know when
I have a python web application that needs to launch a long running process.
I have a VB app that I need to monitor while it is running.
I have an app running Rails 2.3.5 that has a JSON API for much
I have an iPhone app running in the simulator that won't quit. I also
I have a Java web app running on Tomcat 7 that is using JDBC
We have about 7 app servers running .NET windows services that ping a single
I have an app.Config that was created on the dev machine running Windows 7.
I have an app that sends multiple Ajax requests simultaneously. I was originally running

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.