In Linux, at least, starting with v2.0.12
startlazarus doesn't pass the file name and one has to call
lazarus-ide directly. I noticed this when a small tool I use to open projects stopped working.
What I don't remember is whether there was a bug report about it