Page 1 of 1

Starting qcad with file to open

Posted: Wed Feb 15, 2017 11:27 am
by d.tischler
qcad pro on ubuntu based 64bit linux:

I am looking for a way to start qcad by double-click on a dxf-file.

While it is no problem to associate qcad with dxf-files, it is always requested to first change into the installation directory prior to starting qcad. This can easily be accomplished with a small wrapper script but then the opening of the file fails. To my understanding, this is because the file browser appends the file to open without an absolute path and once I change into the installation directory, this does not make sense anymore.

How is this intended?

Thanks,
Sebastian.

Re: Starting qcad with file to open

Posted: Wed Feb 15, 2017 12:21 pm
by andrew
d.tischler wrote:I am looking for a way to start qcad by double-click on a dxf-file.
The QCAD installer (.run file) creates that association automatically.
d.tischler wrote:This can easily be accomplished with a small wrapper script
QCAD already comes with such a wrapper script (named "qcad"). The binary is called "qcad-bin". Passing the absolute path and filename of a file is no problem in any case.