Forum > Cocoa

[Solved] Command-line args are not passed now?

(1/2) > >>

AlexTP:
Original bug report for macOS Monterrey:
https://github.com/Alexey-T/CudaText/issues/5958
I ask someone who has Mac to check it, on simple-primitive app. App can show cmd-line args in the listbox. On recent Cocoa WS version, app don't get cmd-line args!

If noone can check it here, I will ask the topic-starter of CudaText page.

Nimbus:
Hi Alex,

This works for me.
macOS Sequoia 15.4.1 / aarch64, FPC 3.3.1, Lazarus 4.1.

AlexTP:
Nimbus, you have older Lazarus 4.1, I have Lazarus from Git 'main' from week-two ago.

Nimbus:
I can build from main and check again if that helps?

Upd - built both FPC and Lazarus from trunk, still works the same for me.

Upd 2 - Seems like it works if invoked from the terminal, but not if "Open With" (no params besides the executable path in this case).

Lazarus 4.99 (rev main_4_99-1935-g4156a98ab6) FPC 3.3.1 aarch64-darwin-cocoa
Free Pascal Compiler version 3.3.1-17895-g3c5b049f6b [2025/05/14] for aarch64

AlexTP:
Yes, it don't work with 'Open with'. I posted the bugreport
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/41641

Navigation

[0] Message Index

[#] Next page

Go to full version