Open GoogleCodeExporter opened 8 years ago
Technical details:
The problem lies in Pencil.boot() (Pensil.js).
This function invokes Pencil.postBoot() (MainWindow.js).
Pencil.postBoot() reads command line parameters and uses a timeout (100ms) to
open
the specified document.
However, after that Pencil.boot() uses a timeout to create a new empty document
using
a timeout (500ms).
As a result the command line specified document is opened but a new document is
created afterwards. Since it all happens very fast, the user won't notice.
Another problem is when opening a document from command line when a Pencil
window is
already open. It seems Xulrunner now also passes "-app", "application.ini" and
"-console" (no clue why), and this ends up in the file path being loaded. Of
course
this won't load a document.
Original comment by dejong.a...@gmail.com
on 17 Jun 2009 at 10:17
I have fixed this in
http://code.google.com/p/evoluspencil/issues/detail?id=215. I had the same
issue on OS X and actually, I never saw any code to load a document based on
command line arguments so I just created my own attempt and it works.
Original comment by jcscoob...@gmail.com
on 24 Sep 2010 at 3:32
Original issue reported on code.google.com by
jonra...@gmail.com
on 9 Jan 2009 at 5:10