QCAD Bugtracker

  • Status Closed
  • Percent Complete
    100%
  • Task Type Feature Request
  • Category QCAD (main)
  • Assigned To No-one
  • Operating System Linux (All / Other)
  • Severity Low
  • Priority Very Low
  • Reported Version 3 TP1
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: QCAD Bugtracker
Opened by Anonymous Submitter - 23.05.2011
Last edited by Anonymous Submitter - 23.05.2011

FS#91 - linux start shell script enhancement

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 [email protected]


Can only post anonymously, Peter

Closed by  Anonymous Submitter
23.05.2011 14:10
Reason for closing:  Implemented
Peter commented on 23.05.2011 12:04

Simplify, reduce:

#!/bin/sh

DIR=${0%/*}
LD_LIBRARY_PATH="${DIR}" "${DIR}/qcad-bin" [email protected]

This likely also handles spaces in path.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing