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#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
Task Type Feature Request
Category Main
Status Closed
Assigned To Martin (martin)
Operating System Linux (All / Other)
Severity Low
Priority Normal
Reported Version 3 TP1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The 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 $@


Can only post anonymously, Peter

This task depends upon

Closed by  Martin (martin)
Monday, 23 May 2011, 16:10 GMT+2
Reason for closing:  Implemented
Comment by Peter (hungerburg) - Monday, 23 May 2011, 14:04 GMT+2

Simplify, reduce:

#!/bin/sh

DIR=${0%/*}
LD_LIBRARY_PATH="${DIR}" "${DIR}/qcad-bin" $@

This likely also handles spaces in path.

Loading...