FS#91linux start shell script enhancement
- Type
- Feature Request
- Status
- Closed
- Resolution
- Implemented
- Category
- QCAD (main)
- Severity
- Low
- Priority
- Low
- Reported version
- 3 TP1
- Operating system
- Linux (All / Other)
- Reported
- 2011-05-23 by anonymous
- Closed
- 2011-05-23 by deleted user
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
Comments (1)
Simplify, reduce:
This likely also handles spaces in path.