Opened 8 years ago
Closed 8 years ago
#739 closed defect (fixed)
Opening files from shell command line opens them twice
Reported by: | Elaine Meng | Owned by: | Tom Goddard |
---|---|---|---|
Priority: | minor | Milestone: | Alpha2 |
Component: | Input/Output | Version: | |
Keywords: | Cc: | Tom Goddard, Greg Couch | |
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
If I start ChimeraX from mac command line also specifying the input command file (struts.cxc attached) there is an error shown in the Log apparently from reading the pbond file that the script opens (5ego.pb also attached). Subsequent commands in the script are not echoed but apparently they have been executed. The error is that some atomspec in the pbond file is giving 2 atoms instead of one. However, if I simply start up ChimeraX and then separately open struts.cxc there is no error. It seems like there is some weird transient state upon startup where it thinks there are two copies of some atom even though there is only one.
I put it as minor since it might be something a user is unlikely to encounter.
Attachments (3)
Change History (6)
by , 8 years ago
by , 8 years ago
Attachment: | struts.cxc added |
---|
by , 8 years ago
Attachment: | error-screenshot.png added |
---|
comment:1 by , 8 years ago
Milestone: | → Alpha2 |
---|---|
Owner: | changed from | to
Summary: | weird error opening inputs at startup (via system cmd line) but not if opening after startup → Opening files from shell command line opens them twice |
comment:3 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed.
Mac OS generates QFileOpenEvents for command-line arguments and our command-line parsing also opened the file. Made our code ignore the QFileOpenEvents that were already opened as command-line arguments.
e.g. "shell-invocation-of-ChimeraX pdb:3rut" opens two copies of 3rut