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)

5ego.pb (354 bytes ) - added by Elaine Meng 8 years ago.
struts.cxc (731 bytes ) - added by Elaine Meng 8 years ago.
error-screenshot.png (193.9 KB ) - added by Elaine Meng 8 years ago.

Download all attachments as: .zip

Change History (6)

by Elaine Meng, 8 years ago

Attachment: 5ego.pb added

by Elaine Meng, 8 years ago

Attachment: struts.cxc added

by Elaine Meng, 8 years ago

Attachment: error-screenshot.png added

comment:1 by Eric Pettersen, 8 years ago

Milestone: Alpha2
Owner: changed from Eric Pettersen to Greg Couch
Summary: weird error opening inputs at startup (via system cmd line) but not if opening after startupOpening files from shell command line opens them twice

e.g. "shell-invocation-of-ChimeraX pdb:3rut" opens two copies of 3rut

comment:2 by Greg Couch, 8 years ago

Cc: Greg Couch added
Owner: changed from Greg Couch to Tom Goddard

Works on Linux. Mac bug?

comment:3 by Tom Goddard, 8 years ago

Resolution: fixed
Status: assignedclosed

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.

Note: See TracTickets for help on using tickets.