• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Special folder-tree app, avoid double icon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Special folder-tree app, avoid double icon


  • Subject: Re: Special folder-tree app, avoid double icon
  • From: Jean-Patrick Francoia <email@hidden>
  • Date: Thu, 19 Nov 2015 21:58:32 +0100

Thanks. Easy, simple, worked like a charm.

Thank you and have a good night.

Le 19/11/2015 19:12, Greg Neagle a écrit :
Make the wrapper app a LSUIElement — which prevents it from showing an icon in the Dock.

https://developer.apple.com/library/mac/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html

-Greg

On Nov 19, 2015, at 8:01 AM, Jean-Patrick Francoia <email@hidden> wrote:

I have a special app, with a particular structure (I can't get rid of it, I have to use it):

MyProgram.app/
    Contents/
        MacOS/
            launcher
            exe_not_really_exe --> dummy file, mandatory
        Resources/
            MyIcon.icns
    MyProgram-mac-os-x86_64/
        MyProgram.app/
            Contents/
                MacOS/
                    exe_really_exe --> This file runs
                Resources/
                    MyIcon.icns

The file 'launcher' is here to start the second-level MyProgram.app (the deepest one).
In the file launcher, there is a simple bash line:

open ../../MyProgram-mac-os-x86_64/MyProgram.app/

Actually, everything works fine, except for the icons.

If you understand well, I have one app that bundles another one, with one icon each. When I start the main one, it actually calls the child one. So, if I put the parent app in the dock (as a shorcut) when I start it, I get two icons on the dock: the icon for the running child app, and the parent app, which is basically just a shortcut.

I would like to avoid this situation, the user should not see two icons on his dock.

Could you give me a hand ?

Sincerely
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to
email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Special folder-tree app, avoid double icon
      • From: Jean-Patrick Francoia <email@hidden>
References: 
 >Special folder-tree app, avoid double icon (From: Jean-Patrick Francoia <email@hidden>)
 >Re: Special folder-tree app, avoid double icon (From: Greg Neagle <email@hidden>)

  • Prev by Date: Re: Special folder-tree app, avoid double icon
  • Next by Date: Re: Special folder-tree app, avoid double icon
  • Previous by thread: Re: Special folder-tree app, avoid double icon
  • Next by thread: Re: Special folder-tree app, avoid double icon
  • Index(es):
    • Date
    • Thread