[TxMt] Session ID?
desoi at pgedit.com
Fri Nov 14 20:47:02 UTC 2014
With Textmate 1.5 I used the parent process ID from my bundle script (PHP posix_getppid) in order to store some per-session variables. With 2.0, the same function returns a different value for each script execution in the same session. I realize I could query the system and find the Textmate pid by name, but there could be more than one instance running. Is there a better way to get a stable identifier that only changes if the application is relaunched?
John DeSoi, Ph.D.
More information about the textmate