Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#38346 - [qcad] relative paths in ECMA scripts are wrongly resolved

Attached to Project: Community Packages
Opened by Hanspeter Portner (ventosus) - Wednesday, 01 January 2014, 22:12 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 08 January 2014, 11:43 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No



When running QCAD with a custom ECMA script via the '-autostart' command line, a call to the ECMA function 'getAbsolutePathForArg("./")' should return the absolute path of the folder the script is in, e.g. '$(pwd)/./test.js', but instead the function always returns '/usr/share/qcad/./'. This makes it impossible to dynamically load files using relative path prefixes './' and '../'.

Steps to reproduce:
qcad -autostart test.js

Steps to fix:
Do not cd into /usr/share/qcad in /usr/bin/qcad shell script (see patch for PKGBUILD)
This task depends upon

Closed by  Sergej Pupykin (sergej)
Wednesday, 08 January 2014, 11:43 GMT
Reason for closing:  Fixed