This is the semi-working solution I was talking about. It keeps the command line handler out of chrome and also works for sunbird. Its probably bitrotten though.
Sven, feel free to use (parts, all, whatever) of this code if you decide to create a new patch. I was waiting with this, since I first wanted to fix bug 426746, which already creates some files used here.
Hope it helps, sorry for doing possibly duplicate work, at the time I wrote that, it wasn't clear to me you were actively working on this bug.
Created attachment 314829
Philipp's WiP
This is the semi-working solution I was talking about. It keeps the command line handler out of chrome and also works for sunbird. Its probably bitrotten though.
Sven, feel free to use (parts, all, whatever) of this code if you decide to create a new patch. I was waiting with this, since I first wanted to fix bug 426746, which already creates some files used here.
Hope it helps, sorry for doing possibly duplicate work, at the time I wrote that, it wasn't clear to me you were actively working on this bug.