Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OS X: strange -psn command line parameter when launched from Finder

Our OS X Java application which is launched by a shell script inside the MyApp.app bundle gets a strange command line parameter -psn_0_989382 when launched from the Finder, but not when launched directly from the Terminal. Where can I find information what this command line parameter is good for?

like image 654
Mot Avatar asked Apr 20 '12 07:04

Mot


People also ask

How do I fix Finder on my Mac?

If your cursor is stuck and you can't work with Quit All, you can try accessing the Force Quit menu with the following keyboard shortcut: Command + Option + Escape. This will open a new dialog menu where you can choose Finder > Relaunch.

How do you reset Finder Preferences on Mac?

To change these preferences, click the Finder icon in the Dock, then choose Finder > Preferences.

How do I stop Finder from opening when I start my Mac?

The simplest way to disable an app from launching on startup is from the Dock. Right-click on the app and hover over Options in the menu. Apps that are set to open automatically will have a check mark next to Open at Login. Click that option to uncheck it and disable it from opening.

Does macOS require Finder to run continuously?

Note: You won't be able to quit Finder because macOS requires Finder to run continuously. You can also quit an application by pressing Command+Q on your keyboard.


1 Answers

Mac OS X assigns a unique process serial number ("PSN") to all apps launched via GUI. It's used for identifying various processes and instances of executables.

There's nothing I can really add to the documentation, so the best thing is to read the ProcessSerialNumber section of the Carbon Process Manager Reference (original Apple link is dead; this is a mirror).

like image 136
inspector-g Avatar answered Oct 07 '22 01:10

inspector-g