Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-01

Mac App bundle question

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin

Since I am not an expert, a quick question regarding app bundles:

It is always mentioned that without, any app will behave less than pleasant...

I understand (or I believe I do) that if you start an app (from the desktop) you click the bundle.

But if an app is started from a shell, then it seems one can start the executable inside the bundle?
./lazarus.app/Content/MacOs/lazarus
Will that run a misbehaving app, since it refers to the exe, and maybe not the bundle, or will the bundle be used?

I am asking, because if the above tick does start the app normally (as if the bundle was started), then it could be checked if the macports gdb is usable for development.
Since some people reported problems using the gdb supplied by apple (mostly people with intel 64 bit, debugging 32 bit carbon app)

I do not yet know if the macports gdb is any good. But previous tests showed that unlike the apple supplied one, it fails to start the app, if it is given the name of the bundle apple-gdb ./lazarus-app => works
macports-gdb ./lazarus-app => fails

but maybe
macports-gdb ./lazarus.app/Content/MacOs/lazarus can be used?

Reply by email

Mattias Gaertner
to Martin
Show quoted text 11 lines
Since I am not an expert, a quick question regarding app bundles: It is always mentioned that without, any app will behave less than pleasant... I understand (or I believe I do) that if you start an app (from the desktop) you click the bundle. But if an app is started from a shell, then it seems one can start the executable inside the bundle? ./lazarus.app/Content/MacOs/lazarus

Yes.

Will that run a misbehaving app, since it refers to the exe, and maybe not the bundle, or will the bundle be used?

The bundle magic is executed automagically whenever you start something inside a bundle. No matter if via the Finder or directly or via the open command.

Show quoted text 15 lines
I am asking, because if the above tick does start the app normally (as if the bundle was started), then it could be checked if the macports gdb is usable for development. Since some people reported problems using the gdb supplied by apple (mostly people with intel 64 bit, debugging 32 bit carbon app) I do not yet know if the macports gdb is any good. But previous tests showed that unlike the apple supplied one, it fails to start the app, if it is given the name of the bundle apple-gdb ./lazarus-app => works macports-gdb ./lazarus-app => fails but maybe macports-gdb ./lazarus.app/Content/MacOs/lazarus can be used?

Try and tell us.

Mattias

Reply by email

Mattias Gaertner
to Martin
Show quoted text 9 lines
On 13/01/2011 17:29, Mattias Gaertner wrote: > >> but maybe >> macports-gdb ./lazarus.app/Content/MacOs/lazarus >> can be used? > Try and tell us. > Is the path in the bundle always <name>.app/Content/MacOs/<name>

Yes, for the bundle created by the IDE.
Of course you can manually change that to whatever you like.

Mattias

Reply by email