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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:26:01+00:00 2026-06-10T21:26:01+00:00

I have a launcher application in a bundle in /Applications that chooses a binary

  • 0

I have a launcher application in a bundle in /Applications that chooses a binary and fork/execs it. What I would like is for them to share a dock tile. I have tried a few approaches and none of them are satisfactory.

1. Keep the binary bundled with the app

If the binary is contained within the app bundle, this seems to work. However, it’s generally considered bad practice for a bundle to modify itself, and I can’t guarantee that a user has write access to /Applications. I tried putting a symlink to e.g. ~/Library/Application Support/MyBinaries/mybinary but this gives a separate dock tile.

2. Keep the binary outside the app bundle

If the binary is outside the app bundle, I get a separate dock tile. Why don’t I set one of the processes to be an agent s.t. one of the tiles does not appear? This would have to be the launcher as the user should not be able to skip the launcher’s logic as to which binary to run. Unfortunately this means that quit doesn’t work properly, and you can’t click the dock to restore the binary’s window. It may be possible to get this to work by passing messages between the applications properly.

3. Massively hacky solution

There’s a rather hacky way of doing this by adding an extra level of indirection, where the app at /Applications/MyLauncher.app launches another app in ~/Library/Application Support/Launcher2.app, which contains the binaries in its bundle. Only the second launcher has a dock icon.

This seems rather hacky, so I thought I would open this up to SO to see if anyone has a better solution?

EDIT

In option 2, I was keeping the binaries in bundles of their own. Don’t do this. When I kept them in a regular folder everything worked correctly.

  • 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-10T21:26:03+00:00Added an answer on June 10, 2026 at 9:26 pm

    Answering my own question.

    If you find yourself in this situation, go with option 2. Put the application at /Applications/MyApplication.app and keep the binaries in a folder named something like ~/Library/Application Support/MyApplication/Binaries/ and happily fork/exec them. Definitely do not put them in app bundles, as this was the source of my confusion. This solved all of my criteria:

    • Don’t need root access to modify the binaries
    • Launcher and binaries share one dock tile
    • Pressing quit on the dock tile quits the binary.
    • App appears in Launchpad
    • Launching via Dock goes through the launcher app
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small command-line application written in C that acts as a wrapper/launcher
I have an appwidget and I want to show other installed applications' launcher icon
I have an android application that launches a child Activity under certain situations. Both
I have a MFC application that launches a IWebBrowser2 window. On users computers where
I have an application that is launched from within a service using a local
I have a QT application. When I use my created application launcher to start
I have an application that is loading html from a remote server in a
I'd like to build a cocoa app and would like to have it opened
I have a blank HelloWorld Application: package tutorials.TestReceivers; import android.app.Activity; import android.os.Bundle; public class
I have created a split view application that begins with a modal view splash

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.