QCAD

QCAD - 2D CAD System.

Click here for a documentation of the DokuWiki formatting syntax that can be used in reports

Please search for existing tasks (also closed ones) before opening a new task.

Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help - Check for Updates)

Tasklist

FS#1072 - Resolve Relative paths on command line

Attached to Project: QCAD
Opened by Peter (hungerburg) - Monday, 07 July 2014, 17:36 GMT+1
Task Type Feature Request
Category Main
Status Assigned
Assigned To Andrew (andrew)
Operating System Linux (All / Other)
Severity Low
Priority Normal
Reported Version 3.6.0
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

I have aliased qcad to run it from terminal. There is a small glitch when opening a file from a different location using relative path names:

$ alias qcad
alias qcad='/opt/qcad-3.6.0-pro-linux-x86_64/qcad'

$ cd /a
$ qcad some.dwg &
$ cd /b
$ qcad other.dwg

Import Error is shown:
> Can't open file
> /a/other.dwg.
> File is empty.

$ qcad /b/other.dwg # absolute path works

$ readlink /proc/pid-of-qcad/cwd
/opt/qcad-3.6.0-pro-linux-x86_64

Qcad somewhere stores the path, from where it is first launched. The next “launch” will not use the next location but refer to the first one when constructing the full path name of the file name in the argument.

Maybe that can be easily improved (the message is wrong too).

This task depends upon

Loading...