Ok actually, this is not that simple. I don't get exactly the
behaviour I would like.
I will try to be as clear as possible.
If I DON'T use the property LSUIElement, and start my app from its
directory:
- I get two icons on the dock, the two are "jumping" until the first
one (the wrapper) disappears.
If use the property LSUIElement, and start my app from its
directory:
- I get only one icon on the dock, it's jumping and all, everything
is ok.
Now:
If I DON'T use the property LSUIElement, and put the application on
the dock, then start it:
- I get two icons on the dock, the two are "jumping" until the first
one (the wrapper), stops jumping, but stay in the dock. I now have
two icons on the dock, one with a normal behaviour (little point
below if a window is open, clicking it shows the window, etc), and
the other one inactive.
Now, if I use the property LSUIElement, and put the application on
the dock, then start it:
- I get two icons on the dock, only one is "jumping". I now have two
icons on the dock, one with a normal behaviour (little point below
if a window is open, clicking it shows the window, etc), and the
other one inactive.
What I would like to achieve:
- One icon on the dock. When I click it, it starts jumping, and then
the icon has the behaviour of any other icon: little point below,
clicking it show the window, etc.
Could you help me to get that ? Are my explanations clear enough ?
Sincerely
Le 19/11/2015 21:58, Jean-Patrick
Francoia a écrit :
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.
-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
|