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)
FS#91 - linux start shell script enhancement
Attached to Project:
QCAD
Opened by Anonymous Submitter - Monday, 23 May 2011, 11:24 GMT+2
Last edited by Martin (martin) - Monday, 23 May 2011, 16:10 GMT+2
Opened by Anonymous Submitter - Monday, 23 May 2011, 11:24 GMT+2
Last edited by Martin (martin) - Monday, 23 May 2011, 16:10 GMT+2
|
DetailsThe script in the application directory only works when called from within this directory like that “./qcad”. I suggest below alternative, that can be called from any place, as above and also with an absolute path, eg “/opt/qcad-3.0.0-tp1-prof-linux/qcad”:
#!/bin/sh
EXE=${0##*/}
DIR=${0%$EXE}
LD_LIBRARY_PATH=${DIR} ${DIR}/qcad-bin $@
– |
This task depends upon
Simplify, reduce:
#!/bin/sh DIR=${0%/*} LD_LIBRARY_PATH="${DIR}" "${DIR}/qcad-bin" $@This likely also handles spaces in path.